Results 1 to 13 of 13
Thread: Unknown column
Jan 11, 2006, 22:19 #1
- Join Date
- Jan 2006
- 0 Post(s)
- 0 Thread(s)
I am RoR newbie and am having a little trouble. I did a litle messing aroung (tutorials only) with the Thomas/Hansson book last week at work and am now trying to use Ruby at home.
okay, I was pretty sure Ror was working and decided to go back and do that tutorial from the book again to make sure that everything was working. I got to chapter 7 (catalog display example) and when trying to view http://localhost:3001/admin/edit got stuck with this error:
Mysql::Error: #42S22Unknown column 'date_available' in 'where clause': SELECT * FROM products WHERE (date_available <= now()) ORDER BY date_available desc
The thing is, when I do http://localhost:3001/admin/list or http://localhost:3001/admin/edit/#/, the date_available appears.
I tried rebuilding the Scaffold and Controller without writing over files that I had changed but that didn't work.
Does anyone understand my problem or have ideas?