Provide the actual line of code
Venkat Eee wrote:
Rails List wrote:
Provide the actual line of code
<%= link_to_remote page_no, :success =>'handleData(request,"centernav")', :url => { :action => params[:action], :controller =>params[:controller] }, :with => "'module_id=#{module_id}&upload_list=true&page=#{page_no}'", :method => :get %> <% end %>
dude i think you have written this code in your show.html.erb and because of that params[:action] is going to return "show" that why your request is going to show action instead of def media_files_list
used something like this
<%= link_to_remote page_no, :success =>'handleData(request,"centernav")', :url => media_files_list_["your controller name"]_path(parameter) :with => "'module_id=#{module_id}&upload_list=true&page=#{page_no}'", :method => :get %> <% end %>
this should work do rake routes for more information controller name can be singular or plural based on the definition of your methods defined in your route.rb