I don't think you can supply :controller => "some_controller" in
link_to_remote, only :action and :id are valid. I think you should
embrace the resourceful way of doing things and add this to your
routes.rb file:

map.resources :users, :controller => 'admin/users', :name_prefix =>
'admin_'

This would then give you many clean named routes, one of which is
admin_users_path which will link to what you want. Now you can put:

:url => admin_users_path

I have not tested this, but I'm pretty sure it will work.

On Feb 3, 3:20 pm, Greg Donald <[email protected]> wrote:
> On Tue, Feb 3, 2009 at 2:18 PM, Greg Donald <[email protected]> wrote:
> > I do not want to add a route for every single url I have in my admin.
>
> Also, forgot to mention..  I tried this:
>
> map.connect 'admin/:controller/:action/:id'
>
> But I didn't see any change.
>
> Thanks,
>
> --
> Greg Donaldhttp://destiney.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to