Hi all, I'm a newbie
I've installed RoR on win 7 and this is script\about
About your application's environment Ruby version 1.9.1 (i386-mingw32) RubyGems version 1.3.7 Rack version 1.1 Rails version 2.3.8 Active Record version 2.3.8 Active Resource version 2.3.8 Action Mailer version 2.3.8 Active Support version 2.3.8 Application root F:/rubyProject/depot Environment development Database adapter mysql Database schema version 0
I did: 1- rails depot -d mysql 2- rake db:create 3- I've created "products" table with mysql command line editor 4- ruby script\generate scaffold Product 5- I Start webrick 6- go on localhost:3000/products and find (correctly) an empty list 7- I want insert a new product, click on "new" but the page is empty (see img attached)
and if I click on "create" ruby crashes...
Maybe Rails can't connect with Mysql or something else...
database.yml:
development: adapter: mysql encoding: utf8 reconnect: false database: depot_development pool: 5 username: root password: password host: localhost
# Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: mysql encoding: utf8 reconnect: false database: depot_test pool: 5 username: root password: password host: localhost
production: adapter: mysql encoding: utf8 reconnect: false database: depot_production pool: 5 username: root password: password host: localhost
Could anybody help me ??
Maaaany thanks
Attachments: http://www.ruby-forum.com/attachment/4776/emptyForm.jpg