Created
June 30, 2013 15:05
-
-
Save jeremywrowe/5895495 to your computer and use it in GitHub Desktop.
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
render json: Resource.where(something: params[:something]).first_or_create do |r| | |
r.enabled = params[:enabled] | |
r.foo = params[:foo] | |
r.bar = params[:bar] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment