I`m building application, which have features user to have Phonebook and
Contacts, each of these features can be categorized in
categories and subcategories. That`s why I need to have
and Contacts/Category, if someone can provide better
approach, please share it.
m trying to escape the 3 object solution, because I doesnt want to
up my Phonebook controller with stuffs about the category. I want
to separate category somehow from the Phonebook, because Phonebook will
responsible only for the numbers mainly. I`m not sure is this right.
[mailto:email@example.com] On Behalf Of Byron
Sent: Tuesday, February 14, 2006 12:54 PM
Subject: Re: [Rails] Calling find()
You’ll need to merge them manually - what problems arose when you tried
Why are you using “Products/Category” and “Phonebook/Category”? Perhaps
really just need three domain objects - Phonebook, Product, and Category
with some relationships in between. For instance:
class Product < ActiveRecord::Base
class Phonebook < ActiveRecord::Base
class Category < ActiveRecord::Base
Not sure if that’s helpful but perhaps with more info I can be more
On 2/14/06, Julian I. firstname.lastname@example.org wrote:
Nobody reply on my previous post, so from one day i`m asking on the irc
channel, and no response too. I try to generate scaffold code, on my
problem, to see how it handle this, but the result is the same …
When I do generate scaffold Products/Category
I get controller with name Products::Category and model with name
Now in the same application if I do generate scaffold
Previous category model is replaced.
When I manually create model Products/Category and Phonebook/Category, I
cannot use the model or truly I doesn`t know how to use it.
Please, provide some solution on my minor problem.
Rails mailing list