Displaying 2 results from an estimated 2 matches for "bedroom_count".
2007 Mar 29
1
ActiveRecord attributes -- strange behavior when adding Array to an element
...have a database table and associated ActiveRecord model. I was
trying to store (temporarily) an array in one of the attribute
elements - not to save it, but just so that I can keep some form data
in a sensible place. A stripped down version of the problem I''m having
is:
p = Property.new(:bedroom_count => ["2","3"])
puts p.inspect # ==> will correctly show that the array is stored in
the attributes "hash"
puts p.bedroom_count # => returns 1
I realize I''m a little "off rails" on this approach, but does anyone
have any knowledge of what'...
2008 May 06
10
Best way to implement?
So I''m new to all this Rails stuff and this is probably a database
design-related question to, but here it is...
Just for learning I''m trying to build a little real estate listings
application. Of course there is the listings model which will store
basic information like name, price, description, and all that jazz.
I''m to the point where I want to figure out how to