I cannot for the life of me get this to work:
<% @ranks.each do |rank| %>
<tr>
<th><%= rank.number %></th>
<td><span id="edit_#{rank.rank}"><%= rank.rank
%></span></td>
<%= javascript_tag "new
Ajax.InPlaceEditor(''edit_#{rank.rank}'',
''#{rank_url(rank)}'',
{ajaxOptions:{method:''put''}});" %>
<td><%= link_to ''X'', rank_path(rank), :confirm
=> ''Are you
sure?'', :method => :delete %></td>
</tr>
<% end %>
I don''t see what is causing the problem. I click on the text and
nothing happens. Any suggestions? (I have the javascript_tag included
in the head section.)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---