Adler Santos wrote:
> Errata:
> 
> Replace <% form_remote_tag :url => {:action => "next", :remaining =>
> @everything} do %> with <% form_remote_tag :url => {:action =>
> "next", :remaining => @remaining} do %>.

Somewhere you need to keep track of which iteration of "Next" you are on 
in the view - perhaps a hidden field would suffice.

A processing heavy version would use in_groups_of in the controller to 
let you walk the groups and just return the one you want (along with the 
new current set so you know that on the next 'Next' iteration).


-- 
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 [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-talk?hl=en.

Reply via email to