Iterating between two values captured in a form

Hey all,

What would be the best way to iterate between two numeric values
captured in a form?

Something like:
UserRequest.find(params[:user_request])
(attribute1…attribute2).each {|x1,x2| … }

Something like this possible? Thanks.

John M. wrote:

Hey all,

What would be the best way to iterate between two numeric values
captured in a form?

Something like:
UserRequest.find(params[:user_request])
(attribute1…attribute2).each {|x1,x2| … }

Something like this possible? Thanks.

Yes, pretty much as you described. Try it!

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs