Forum: Ruby on Rails keep getting undefined method `rewrite' error for mapped url

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bab1a2e4449e412ede5696e9b2539c55?d=identicon&s=25 [s] (Guest)
on 2006-04-14 01:04
(Received via mailing list)
Hi all,

I've checked numerous manuals but can't find the answer anyway.

in my routes.rb file I have a mapping which maps
http://app/start/show/url
to   http://app/url

everything works fine BUT:

- when I want to use link_to, redirect_to (smth)
- when I try to even enter <%= form_tag :action =>
'some_other_action_from_the same_controller' %>

I keep getting this error:

undefined method `rewrite' for "xxxxxxx":String

"xxxxxxx" is the 'url' in the mapping and the addres (http://app/URL)

What am I doing wrong?
How can I fix this so that I could use other actions freely.


Sabon
This topic is locked and can not be replied to.