Ruby on Rails Tuesday, June 1, 2010

Matt Royer wrote:
> ----
>
> <div id="order">
>
> <ul>
>
> <% @orders.reverse.each do |order| %>
>
> <li><%= link_to_remote( "#{order.id} #{order.name}" , :url =>
> {:controller => 'orders', :action => 'show', :id => order.id }, :update
> => "order_div", :method => 'get' ) %></li>
>
> <% end %>
>
> </ul>
>
> </div>
>
> ----
>
> I want to create a button or link to scroll these order items by 5 at a
> time. So it should display the first 5 by default. I will then be able
> to click a button below and it should scroll the next 5, hiding the
> previous.

Nevermind. I know I should post this at one of the JS framework forums.
Only posted here to see if there is any way to take care of the Rails
side of things to cut down on the JS work.
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment