Dear all,
i want to enter "quantity ordered" in the textfield on product page,
then click "view location", to view the location of the product ,then
choose the location and submit to make a reservation, but i want to know
how can i pass "quantity ordered" from product page to location page.
Thanks

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

Search Discussions

  • Stefano H. at Jan 20, 2012 at 9:17 am

    Daisy Di wrote in post #1041719:
    Dear all,
    i want to enter "quantity ordered" in the textfield on product page,
    then click "view location", to view the location of the product ,then
    choose the location and submit to make a reservation, but i want to know
    how can i pass "quantity ordered" from product page to location page.
    Thanks
    It sounds a lot like you should rethink your models. Would any of those
    routes make sense for what you are doing?

    foobar.com/quantity/new ?
    foobar.com/location/new ?

    No they dont. What would make sense is this:
    foobar.com/reservation/new or foobar.com/order/new

    So when creating a new order you can choose the products, the quantity
    and show the location of the products. Otherwise you are making the
    product or the location model do something that they shouldnt really be
    doing.

    This would be my approach at least.

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJan 20, '12 at 4:39a
activeJan 20, '12 at 9:17a
posts2
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Stefano H.: 2 posts

People

Translate

site design / logo © 2021 Grokbase