I cannot find a complete example of this on the web. Here's what I'm trying to do: In a view I have a remote_function call that right now looks like this:
<% @artists.each do |artist| %> <li class="link" onclick="<%= remote_function(:update => "album_box", :url => { :action => :list_albums }, :with => "id=#{artist.id}") %>"> <%=artist.name%></li> <%end%> and in the corresponding controller: def list_albums @albums=Album.find(params[:id]) @albu...@albums.sort { |a,b| a.title <=> b.title } end Either or both of these is wrong, since in the end I get a "Can't find an album without id". There is a complicating issue, too, since if I change the parameter name, I get "undefined local variable". Anyone got a quick example of the syntax for what *must* be a very common and simple task??? -- 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---