On 31 March 2010 16:38, Tony Tony <li...@ruby-forum.com> wrote: > Michael Pavling wrote: >> On 31 March 2010 15:36, Tony Tony <li...@ruby-forum.com> wrote: >>> is there a place where I can learn this kind of thing simple thing? >> >> 'Fraid you've just gotta read the docs and remember as much as you can >> - and be suspicious! If something doesn't "work" then make sure all >> your assumptions are correct - we normally assume things like return >> values; object types; variables not being nil; existence of methods... >> all that stuff :-) >> >> I can't recommend enough this search in Google: >> >> "ruby rails api <your problem>" >> >> I had an inkling about the solution to your problem and Googled for >> "ruby api object", that took me to the docs for the .class method, and >> the answer was right there. > > Thank you! > > I was able to find the .class declaration via your search term. I guess > I just didn't know that the "current_user" part was an object. I'm > telling you - simple stuff.
In ruby all objects are Objects. Colin -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.