When I am debugging in the server on Rails 3/1.9.2 I can not seem to assign
a model object to a value:

(rdb:1) u = User.new(:email => "[email protected]", :password => "password1").save
Up argument '= User.new(:email => "[email protected]", :password => "password1").save'
needs to be a number.

But I can do:
(rdb:1) a = 1
1
(rdb:1)

And I can do:
(rdb:1) str = String
String
(rdb:1) str
String

Is this something to do with ActiveRecord perhaps, and if so is there a way
to do this. For example I want to assign the model in the first example to a
variable so I can ask for the errors.

Thanks,

David

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to