I am going through the Depot application tutorial in the Agile book and
have a question...

How is that I can put a reference to my model (i.e. @products =
Produts.all) in my store controller (or any other for that matter) and
it just "knows" about it.

To me that seems a lot like global variables which I thought were a
no-no.
I would expect a require statement at the top or something like that.
-- 
Posted via http://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 [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