Chris Habgood wrote in post #974783:
> You can just pass it into the view as a hidden param.

like a session variable or some thing?

Well I was thinking that maybe I could build a route that went 
controller/action/id/qty
So if :qty was absent it would use the general array of tires with that 
:id param and if :qty was present it would then delete all elements that 
didn’t meet the qty sent.

Currently the @tires array gets built on were size equals :id. I’m not 
sure how to say if :qty != nil{ delete_if( |t|
t.qty != :qty}

-- 
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