search for: craeted_at

Displaying 2 results from an estimated 2 matches for "craeted_at".

2008 Oct 06
1
Rails console, saving objects
...#<Story id: nil, name: nil, url: nil, created_at: nil, updated_at: nil> >> story.class => Story(id: integer, name: string, link: string, created_at: datetime, updated_at: datetime) I do not remember me asking for id, name, link or url, created_at and updated_at. I do know if I typed craeted_at instead of created_at or updetad_at instead of updated_at. How do I check whether i typed it right or wrong? From the Rails console, I had to create a story class, one instance of it and save the object, but I created two, so I got a 2 output for a story.id input. How do I remove the second object...
2005 Dec 27
10
ActiveRecord flexible columns
I would like to have a table with flexible columns. For example i have the following table customers: id name email The user should be able to save other columns to the database as well : me = Customer.find(10) me.name = ''me company'' me.email = ''me-RPlE4GnVVoJHoQZOM9yvow@public.gmane.org'' me.msn = ''me1234'' # custom columns me.birthdate =