first-time spree user and relatively new to rails, but I know my way around
rails pretty well. I wanted to make sure I was organizing my site properly.
I apologize in advance for the length.
I'm building an ecommerce clothing store with three primary taxonomies:
women, men, and kids, and then several static pages, such as about,
Within each primary taxonomy I have multiple taxons, such as pants, shorts,
shoes, etc. I'm trying to build my site so that when you visit
http://mywebsite.com/women you will be taken to a page with all of the
taxons in the women taxonomy. Once on that page you can click on pants and
it will take you http://mywebsite.com/women/pants which will display all
the womens pants. Pretty straightforward.
Spree however is confusing me. I currently have a 'women' action inside of
'controllers/spree/home_controller.rb and right now I'm just pulling all
products onto that page with @products = Spree::Product.all.
I'm not really sure where to go from here. Do I create another action
called 'pants' inside of the home_controller and in my routes.rb file just
do a match '/women/pants' => 'spree/home#pants'?
Or am I going about this wrong?
How do I query for only the products within the 'women' taxonomy? And
furthermore, how do I query for products only inside the women => pants
Thank you. Again I apologize for all the questions. I'd be happy to
compensate someone if need be.
You received this message because you are subscribed to the Google Groups "Spree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/groups/opt_out.