Mailinglist Archive: yast-devel (163 mails)

< Previous Next >
[yast-devel] Re: [yast-commit] <rest-service> master : small fixes to restfull resource
  • From: Klaus Kaempf <kkaempf@xxxxxxx>
  • Date: Fri, 25 Sep 2009 22:11:38 +0200
  • Message-id: <20090925201138.GA8344@xxxxxxxxxxxxx>
* Josef Reidinger <jreidinger@xxxxxxx> [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: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
References