Class: Amalgam::RegistrationsController
Instance Method Summary
collapse
#default_url_options, #set_locale
amalgam_define_helpers
Instance Method Details
#edit ⇒ Object
7
8
9
|
# File 'app/controllers/amalgam/registrations_controller.rb', line 7
def edit
render :edit
end
|
#update ⇒ Object
11
12
13
14
15
16
17
18
19
20
21
|
# File 'app/controllers/amalgam/registrations_controller.rb', line 11
def update
respond_to do |format|
format.html do
if @resource.update_attributes(params[resource_name])
redirect_to after_update_path_for(@resource)
else
render :edit
end
end
end
end
|