I have controller:
def liste
@tags_pages, @tags = paginate(:tags, :order => “tags desc”)
end
and a RJS-file (liste.rjs):
page[:main].replace_html :partial => “liste”, :object => @tags ???
and a RHTML-file (_liste.rhtml):
<% for a in @tags %>
<%= a.tag.downcase %>
<% end %>
I want to display a page with all tags in the database. Because
there are a hundred of them I want’ to use pagination. But to use
the RJS file I need @tags_pages AND @tags in it.
How to manage this?