Wes Gamble
2008-Jul-07 20:27 UTC
Getting access to route-generating helpers from a migration
Is there any way to get access to a RESTful named route helper from a migration. I''d like to place URLs generated from these routes into a DB table and wanted to manage the static data by using a migration. So I''d like to be able to get at the URL generated by something like "posts_url", for example. Is this doable? Is there some way that I can either include an appropriate module in my migration class or directory interrogate the Routing class to get this URL? Thanks, Wes -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Seemingly Similar Threads
- Controller can''t find helper?????!!!!!????
- ADVICE: Generating unique identifiers for later DB insertion
- Routing acting strangely - mixed case controller names fail?
- Advice needed: Rails generating Java WebRowSet style XML
- Capistrano only runs migration against production env?