Created
November 15, 2010 23:34
-
-
Save tpope/701180 to your computer and use it in GitHub Desktop.
Cleanup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%h3 Edit #{setting} | |
= form_for setting do |f| | |
render f | |
%fieldset.actions | |
= f.submit "Save" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SettingsController < ApplicationController | |
expose(:setting) | |
def update | |
setting.save | |
respond_with setting, :location => settings_path | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment