-
Notifications
You must be signed in to change notification settings - Fork 43
2355 - 3 #271
base: master
Are you sure you want to change the base?
2355 - 3 #271
Conversation
2355/3/models/comment.rb
Outdated
docs = { 'id' => 1, | ||
'language' => 'ru', | ||
'text' => text } | ||
documents = { 'documents': [docs] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint/Syntax: unexpected token tCOLON
Lint/Syntax: unexpected token tRCURLY
2355/3/models/article_rate.rb
Outdated
'language' => 'ru', | ||
'text' => comment.text.to_s } | ||
end | ||
documents = { 'documents': docs } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint/Syntax: unexpected token tCOLON
2355/3/models/comment.rb
Outdated
docs = { 'id' => 1, | ||
'language' => 'ru', | ||
'text' => text } | ||
documents = { 'documents': [docs] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint/Syntax: unexpected token tCOLON
Lint/Syntax: unexpected token tRCURLY
2355/3/models/article_rate.rb
Outdated
'language' => 'ru', | ||
'text' => comment.text.to_s } | ||
end | ||
documents = { 'documents': docs } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint/Syntax: unexpected token tCOLON
2355/3/models/comment.rb
Outdated
def initialize(text) | ||
@text = text | ||
docs = { 'id' => 1, 'language' => 'ru', 'text' => text } | ||
documents = { 'documents': [docs] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint/Syntax: unexpected token tCOLON
Lint/Syntax: unexpected token tRCURLY
2355/3/models/article_rate.rb
Outdated
@article.comments.each do |comment| | ||
docs << { 'id' => 1, 'language' => 'ru', 'text' => comment.text.to_s } | ||
end | ||
documents = { 'documents': docs } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint/Syntax: unexpected token tCOLON
2355/3/models/comment.rb
Outdated
def initialize(text) | ||
@text = text | ||
docs = { 'id' => 1, 'language' => 'ru', 'text' => text } | ||
documents = { 'documents'=> [docs] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/SpaceAroundOperators: Surrounding space missing for operator =>.
2355/3/models/article_rate.rb
Outdated
@article.comments.each do |comment| | ||
docs << { 'id' => 1, 'language' => 'ru', 'text' => comment.text.to_s } | ||
end | ||
documents = { 'documents'=> docs } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/SpaceAroundOperators: Surrounding space missing for operator =>.
Номер
2355
Номер задания
3
Ссылка на видео с демо
https://youtu.be/hT_ggIzlXE0
Комментарии
Можно просмотреть список всех добавленных статей, можно добавить новую статью, можно посмотреть рейтинги статей, рейтинги комментов отдельной статьи. В ТЗ больше вроде не требовалось...