Jacob,
I have just checked in some additional tests that show extension
routes working fine. I also created an extension, put in a custom
route, generated a link using url_for, and have no problems. A couple
of comments below:
On Feb 3, 2007, at 9:36 PM, Jacob Burkhart wrote:
> My partial calls:
> url_for(:controller => 'page_attributes', :action => :add)
Should that be :controller => 'admin/page_attributes'?
> the first time it loads, and things look ok. (after a fresh server
> restart)
Production or development?
> But then when I go to another page and come back I get a:
>
> No route matches {:controller=>"admin/
> page_attributes", :action=>"add"}
>
>
> I'm defining my route by doing:
>
> define_routes do |map|
> map.connect 'admin/page_attributes/:action', :controller =>
> 'admin/page_attributes'
> end
>
> at the top of my extension (like the other ones do)
>
>
> Can somebody please explain something about the magic that loads
> extensions.
> Apparently something is working when the extension is first loaded and
> then fails when it is re-accessed.
We are simply listening to Dependencies.clear, at which point we
reload the extension classes explicitly, and have hooked into route
reloading - which happens around the same time - so that we can get
the extensions routes back in play.
aiwilliams
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant