On Apr 16, 10:00 pm, Dave
<dhoef...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi there,
>
> I was wondering how I would gain access to all the named routes
> available to an application from within a rake task. I tried to
> "include ActionController::Routing" within the rake task, but
that
> doesn''t seem to work because when I specify one of my named routes
in
> the rake task I get an error of "undefined local variable or method
> ''the_url'' for main:Object".
>
> What else do I have to "include"?
>
I don''t actually know, but there is a rails supplied take task that
lists all those routes, so I''d suggest that you poke around in the
source for that task to begin with (it''s somewhere in railties I
think).
Fred
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---