working with the console in development mode it should give you all
information you might need to debug the problem.
Thinking about the problem a little more makes me believe that you
probably have code that looks like this:
u = User.find your_id_value # => Will produce a User object
u.to_ary # => This gives you an error
When you run to_ary against a user object you get an error but when
you run it against an array of users it works:
u = User.find :all # => Will produce an array of User objects
u.to_ary # => This works
On Aug 23, 12:04 pm, Heinz Strunk <li...@ruby-forum.com> wrote:
> I'm using console and I restarted and reloaded it a couple of times.
>
> Rails 3.0.0.rc and Ruby 1.9.2
> --
> Posted viahttp://www.ruby-forum.com/.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment