Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Kennedy Article on Rails Secuity
model = SomeModel.new(params[:some_model])
if model.save
# ...
end
# or
model = SomeModel.find(params[:id])
if model.update_attributes(params[:some_model])
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.