Last active
May 30, 2016 08:21
-
-
Save aya-soft/7408dff8b3c18f4704c8754c91ed5721 to your computer and use it in GitHub Desktop.
Как ты не видишь где что лежит из данных - я не понимаю! Все ж на своих местах!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def new | |
unless current_user.service_station.present? | |
redirect_to new_profile_service_station_path | |
else | |
service = current_user.service_station.service_station_comments.where("spare_id = ?", params[:spare_id]) | |
if service.present? | |
redirect_to "/profile/service_station_comments/#{service.first.id}/edit" | |
end | |
@comment = ServiceStationComment.new | |
gon.labor_times_price = current_user.service_station.labor_times_price | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Разобрался! Спасибо. Буду иметь ввиду.