$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
$ rails -v
Rails 3.1.3
All this on Kubuntu. But I'm using sqlite3 for development, can it be an issue?
I'm also attached Gemfile.lock.
>
> Also please confirm all is working after setting your roles. I wouldn't
> want you to be frustrated. =)
Actually, I'm a bit frustrated. Product addition require many steps,
which purposes
I'm don't completely understand, and, as result, I can only enter into
products?product_type_id=1,
and don't see any products inside.
And what about UserRole model? It it really needed? In other words, it
there any need to work with
relation directly? If not, has_and_belongs_to_many can be used
instead, with separate join table,
but without UserRole model.
http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html
"Choosing which way to build a many-to-many relationship is not always
simple. If you need to work
with the relationship model as its own entity, use has_many :through.
Use has_and_belongs_to_many
when working with legacy schemas or when you never work directly with
the relationship itself."