public
Created

Kennedy Article on Rails Secuity

  • Download Gist
ok_code.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11
model = SomeModel.new(params[:some_model])
if model.save
# ...
end
 
# or
 
model = SomeModel.find(params[:id])
if model.update_attributes(params[:some_model])
# ...
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.