I've got a table of what I call resources, want to show in a jQuery dialog a particular record when user clicks button in a row.
in the table I'm doing: <td><%=button_to_function 'Show','showresource1()',:class =>"ui-button ui-state-default ui-corner-all", :id => resource.id %></td> js: <script type="text/javascript" charset="utf-8"> function showresource1() { jQuery("#resource_details").load( 'http://localhost:3000/resources/show/4').dialog('open'); } </script> I can open the dialog and load this static URL, but am stumped re passing resource.id from the button_to_function down to the js function. Any help would be Much Appreciated! -- 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 -~----------~----~----~----~------~----~------~--~---