FAQ
You might try looking at product properties and storing it there. You
should be able to modify the view to pull a specific ingredients property
or more than one. If it needs it's own interface, roll you own. Rails makes
it pretty easy to do.

Regards,

Nate
On Tuesday, July 9, 2013 5:20:31 AM UTC-4, Prachi Mantri wrote:

Hi all,
'
I am not sure if a question like this has been asked before on this forum
but I need help with some data modelling.

I cannot tell you too much about the requirements but think of it as
selling an item is made up of "ingredients" (a product of prototype 'Food'
has_many ingredients?). The application should allow a user to create a
list of ingredients (E.g. flour, eggs, milk, sugar, salt) previously (store
them in a table?) and associate these ingredients with the product as and
when they add a product to sell.

So does Spree allow us to create something like that? An omlette may have
eggs and salt, a cake may have flour, eggs, etc?

It seems I would have to add my own model and associations for this. Or
has this requirement been addressed before, perhaps in an extension? I gave
the example of food and ingredients, but the underlying requirement is I
should be able to add "many values of a kind" to a product and I need to
store these somewhere. I am not sure if I put this very clearly in words
but please feel free to ask :)

I would appreciate any kind of help on this.

Thanks!


- Prachi

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedJul 9, '13 at 2:17p
activeJul 9, '13 at 2:17p
posts1
users1
websitespreecommerce.com
irc#RubyOnRails

1 user in discussion

Nate Lowrie: 1 post

People

Translate

site design / logo © 2022 Grokbase