Overriding primary key protection in Rails -


Is there a way to cross the group assignment security on the primary key of a model in the rail?

Default termination

not ideal

Use direct assignment You can also take advantage of the blocks.

  model. Create! Do it M | M.id = 27 m.attribute = "foo" end  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -