I am new to Ruby on Rails and AJAX and I am curious as to the best way to achieve the following:
I have an index.html.erb file that lists some records.
<% Post.recent(**selected = **).each do |post| %>
... retrieve data from database and hide/show elements
<% end %>