Class: Saasaparilla::ContactInfoController
Instance Method Summary
collapse
included, #require_current_billable
Instance Method Details
#edit ⇒ Object
7
8
9
|
# File 'app/controllers/saasaparilla/contact_info_controller.rb', line 7
def edit
end
|
#update ⇒ Object
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
|