Displaying 3 results from an estimated 3 matches for "my_product".
Did you mean:
mg_product
2006 Jan 19
4
hash fixture access broken in functional test
I have a functional test class that uses the "topics" fixture. I
verified that the fixture is loaded into the database by doing this:
assert_equal 2, Topic.find_all.size
So I should have an instance variable called @topics and instance
variables for each of the rows in the fixture, in this case, @first and
@another. But all those variables are nil inside my test method.
Is that
2005 Dec 29
14
Rails 1.0 - Agile book still good?
I''m new to Ruby and RoR but excited to learn what I can do with RoR; I
have Pickaxe second edition and want to get "Agile Web Development with
Rails" but I''m aware that the book was published some while before RoR
version 1.0 was released. Has a lot changed since then, and would I
therefore be advised to wait for a second edition of AWDwR?
Many thanks in advance
2006 Dec 05
7
Dynamic # of Attributes for a Model (key/val table) Get/Set?
I''m working on a simple product catalog. Products have user defined
attributes, such as: color, size, weight. More attributes can be added
at any time. Since these attributes are not known ahead of time, they
cannot be created as columns.
My table structure (simplified):
products
--------
id
name
attrs
--------
id
name
product_attrs
--------
id
attr_id
value
And some sample code:
##