Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aya-soft/c7ce120aeec2ed8806f6ff4211458d47 to your computer and use it in GitHub Desktop.
Save aya-soft/c7ce120aeec2ed8806f6ff4211458d47 to your computer and use it in GitHub Desktop.
1) Зачем вводить лишнюю переменную @Spare, если есть @comment.spare?
def edit
@comment = ServiceStationComment.find(params[:id])
@spare = @comment.spare
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment