The important thing was whether the file was called compute.rb
I am following a book “Beginning Ruby on Rails” by Steven Holzner.
That book may be based on older version. Mine is 1.8.6
The important thing would be the rails version, not the ruby version.
and now get a different error:
ActiveRecord::StatementInvalid in VandaController#att
Mysql::Error: Table ‘orchids.computes’ doesn’t exist: SHOW FIELDS FROM computes
Apparently, a schema is created for Compute and Ruby thought ther is a
Compute table in the database.
So this is not helping any.
It would have created a migration to add that table but it would not
have run it. You can run it with
rake db:migrate
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.