First rails application! I can not figure out all the details of how the method 'model' is defined ! The error occurs when processing the statement: model :contact in the file app/controllers/contact_controller.rb following the commands: rails AddressBook cd AddressBook ruby script/generate model contact ruby script/generate controller contact ... fix the db to use mysql .. where the database table is created as per.. http://www-128.ibm.com/developerworks/linux/library/l-rubyrails/ Error happens when I connect: http://...:8000/contact ------------------------------------ --> file: app/controllers/contact_controller.rb class ContactController < ApplicationController model :contact scaffold :contact end --> file: app/models/contact.rb class Contact < ActiveRecord::Base end
on 10.08.2008 13:06
on 10.08.2008 15:43
I think the rails forum is more appropriate for this message and I have posted a copy of the message there. Regards, Keith Tice