Class: Saasaparilla::ContactInfoController

Inherits:
ApplicationController show all
Includes:
Authentication::InstanceMethods
Defined in:
app/controllers/saasaparilla/contact_info_controller.rb

Instance Method Summary collapse

Methods included from Authentication::InstanceMethods

included, #require_current_billable

Instance Method Details

#editObject



7
8
9
# File 'app/controllers/saasaparilla/contact_info_controller.rb', line 7

def edit
  
end

#updateObject



11
12
13
14
15
16
17
18
19
# File 'app/controllers/saasaparilla/contact_info_controller.rb', line 11

def update
  if @contact_info.update_attributes(params[:contact_info])
    flash[:notice] = "Contact info was successfully updated."
    redirect_to subscription_path
  else
    flash[:error] = "An error has occurred when trying to update your contact info."
    render :action => "edit"
  end
end