Browse Source

refactor: railsification

pull/1034/head
natdeanlewissoftwire 4 years ago
parent
commit
5e7ce3756d
  1. 2
      app/controllers/locations_controller.rb

2
app/controllers/locations_controller.rb

@ -15,7 +15,7 @@ class LocationsController < ApplicationController
end
def new
@location = Location.new(scheme_id: @scheme.id)
@location = Location.new(scheme: @scheme)
@location.save!
redirect_to scheme_location_postcode_path(@scheme, @location)
end

Loading…
Cancel
Save