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

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -