<% for item in @items %> <% item.id
%>
<%= link_to_remote ‘show other ids’, :url=>{:action=>showall} %>
<%end%>
What I want to do is when “show other ids” is clicked, the content of
each span is showed (eg. with a toggle) except for the span that goes
with the link that’s been clicked.
any idea how to do this?
any idea how to do this?
In the end, the answer will be a combination of RJS and CSS. In terms
of
what exactly that needs to look like, I’m not grokking what you want it
to
look like initially. Right now what you have above will show a bunch of
rows where each row is a link that says ‘show other ids’. And that’s
all.
More info needed to assist.