Hmmmm nope... not good

If I set up controller_prefix well, all links  work as expected (have 
the good urls), BUT actions (such as form submits, editing, etc.) have 
the wrong url (since they don't have prefix). If I set action_prefix, it 
messes up everything, the scheme is as follows:

http://www.all.hu/CONTROLLER_PREFIX/some_controller/ACTION_PREFIX/some_action

ACTION_PREFIX is not needed in normal links, but needed at form submits 
for example.


E.g:
http://www.all.hu/CONTR_PREF/categories/ACTION_PREF/show/1
is an URL to show articles in a certain category.
in this link ACTION_PREF should be "", so the link is:
http://www.all.hu/CONTR_PREF/categories/show/1

But in case of an article editing form, whose submit link is generated 
automatically from :action => target , the action prefix should have a 
value.


I have _no_ idea how to resolve this :/


Regards,
Ochronus



Ochronus wrote:
> Ok, I found out...
> 
> Instead of application_prefix, I rewrote action_prefix, like:
> 
>  protected
>      def default_url_options(options)
>        { :controller_prefix => "ochronus/" }
>      end
> 
> 
> 
> Thank you again for your help, David!
> 
> Regards,
> Ochronus
>