Frederick Cheung wrote:
> use require_dependency instead of require (and i would do this at the
> top of the location model, not in the controller)

This was exactly what I needed. Thank you.

It's too bad that Pickaxe (2nd ed) and Agile Web Development with Rails 
(2nd ed) didn't mention require_dependency. Can anyone recommend a 
reference that would have included it?

    — F
-- 
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 rubyonrails-talk@googlegroups.com
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