I have a Rails 3 app which JSON encodes objects in order to store them in a Redis key/value store.
When I retrieve the objects, I\'m trying to decode the JSON and in
You can create a user also in this way which is not doing the mass assignment.
User.create do |user| user.name = "Josh" end
You may want to put this into a method.
new_user(name) User.create do |user| user.name = name end end