* Josef Reidinger <[email protected]> [Sep 25. 2009 16:14]:
> > 
> >      def link_to
> > -      "/#...@controller}/#...@singular ? "show" : "index"}"
> > +      "/#...@controller}/#{action}"
> 
> ^^^
> This is root of actual problems. It is not true, that route is controller.

And after looking more closely, I wonder why the Resource model has a
'link_to' method anyways.

ActionController::Base provides a 'url_for' method which was called
with wrong parameters (passing a URL as controller instead of the
controller path).

Should be fixed now.

Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to