yossarian wrote:

> 
> Is this behaviour intentional, am I doing something really wrong, or is
> there a configuration option I can set somewhere?
> 

The answer: choice (b), I was doing something really wrong.  I
investigated things further, and I came to the conclusion that whatever
was causing my problem had to do with actioncontroller routing - I
noticed that routes in my engine were all absolute when I used the named
routes from my resources in the engines routes.rb, but not when I
generated named routes myself using something like:

map.foo 'foo/bar', :controller => 'admin/articles'

So I looked a little harder into the Engines routing.rb file, which led
me to actually read the source code of
ActionController::Routing::RouteSet for the first time.  I never really
understood before why there was an articles_url(article) and
articles_path(article) but now I realize that the _url is for a url and
the _path is for a path.  Now I will go hang my head in shame :).

By the way, Engines are pretty great, and have really helped me do the
stuff I want to accomplish, so thanks for the plugin!

Yossarian

_______________________________________________
Engine-Users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to