ruby on rails - Link_to doesn't work when using acts-as-taggable-on with custom method -


or rather don't know how specify route it.

i have controller setup us:

def tags   @clients = current_user.clients.find_tagged_with(params[:tag]) end 

and views

tags:

<% tag in @client.tags %>   <%= link_to tag.name, clients_path(:view =>'tag', :tag => tag.name) %> <% end %> 

only problem link (clients_path) goes index , not 'all.' know has changing clients_path somehow tell use 'all'. don't know how.

any help?

thanks

you can check routes using rake routes.

i'm not sure mean 'all' if custom method added routes, should able use all_clients_path instead of clients_path.


Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -