Hi all,
When a user clicks the link_to_remote 'trash.gif' (last span) I want
to apply a certain stylesheet class to the event_3 div
how can I do this?
Thanks
Stijn
<div id="event_3">
<span><b><%=link_to(h(event.summary), event_path(event)) %></b></
span>
<span class="info">
op <%= event_date(event) %>
om <%= event_time(event) %>
</span>
<span>| <%=link_to_remote "aanpassen",
:url => edit_event_path(event.id),
:method => :get %>
</span>
<span>| <%=link_to_remote image_tag('trash.gif', :border => "0"),
:url => event_path(event.id),
:method => :delete,
:confirm => 'Are you sure?' %>
</span>
</div>
--~--~---------~--~----~------------~-------~--~----~
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 [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-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---