Skip to content

Conversation

@RamzanBersanov
Copy link

No description provided.


def index
@time = Time.now
# render plain: 'Plain text response', status: 404

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

такой комментарий ни какой пользы не несёт и должен быть удалён

# if template.has_key?(:plain)
# set_headers['Content-Type'] = 'text/plain'
# end
# end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это тоже мусор в коде

match_data = router_parts[index].match(/^:(.+)/) # ["", "tests", ":id"] поочередно проверяются на соответствие /^:(.+)/
# выбирается часть с :id
# match_data = [':id']

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

такие комментарии не пишут
https://rubystyle.guide/#refactor-dont-comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants