Redirect to Locations when creating a new location

This is instead of redirecting to LocationsN, as we are not going to
provide a view for a specific location at this time.
This commit is contained in:
Bram Senders 2011-11-23 15:49:05 +01:00
parent f9836029c7
commit 803a8894dc
1 changed files with 2 additions and 2 deletions

View File

@ -1020,7 +1020,7 @@ module StopTime::Controllers
end
# Creates a new location object (Models::Location) if the input is
# valid and redirects to LocationsN.
# valid and redirects to Locations.
# If the provided information is invalid, the errors are retrieved
# and shown in the initial form (Views#location_form).
def post
@ -1036,7 +1036,7 @@ module StopTime::Controllers
@button = "create"
return render :location_form
end
redirect R(LocationsN, @location.id)
redirect R(Locations)
end
end