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
--
Posted via http://www.ruby-forum.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
-~----------~----~----~----~------~----~------~--~---