c
Size: a a a
c
c
#Задание
#Написать реализацию my_each_slice без использования
#each_slice
coll = (1..10)
coll.each_slice(3) { |x| p x}
coll.my_each_slice(3) { |x| p x }
W
W
И
c
GG
- if question.persisted?
div id = "question_#{question.id}"
= link_to question.title, question_path(question)
= render 'shared/vote', resource: question
.links
p Links:
ul
= render 'shared/link', resource: question
= render 'shared/attachments', resource: question
- if can?(:update, question)
p= link_to 'Edit', '#', class: 'edit-question-link', data: {question_id: question.id}
- if can?(:destroy, question)
p= button_to 'Delete',
question_path(question),
method: :delete,
data: {confirm: 'Are you sure?'}
= render 'edit_form', question: question
br
VN
AS
VN
T
VN
VN
AS
VN
AS
if false && params[:order][:address].present? && params[:order][:address][:block_type].present?
/do
end
AS
AS
AS