Revert "Redirect to Locations when creating a new location"

This reverts commit 803a8894dc.
This commit is contained in:
Bram Senders 2011-11-23 16:12:32 +01:00
parent 1da6ca6e85
commit 0ae19e3376
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 Locations.
# valid and redirects to LocationsN.
# 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(Locations)
redirect R(LocationsN, @location.id)
end
end