Class: Amalgam::RegistrationsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/amalgam/registrations_controller.rb

Instance Method Summary collapse

Methods included from Globalize::Helpers

#default_url_options, #set_locale

Methods included from Authorities::Controllers::Helpers

amalgam_define_helpers

Instance Method Details

#editObject



7
8
9
# File 'app/controllers/amalgam/registrations_controller.rb', line 7

def edit
  render :edit
end

#updateObject



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