Article:
 |
|
Rolling with Ruby on Rails Revisited
|
| Subject: |
|
scaffold error and mongrel problem |
| Date: |
|
2007-03-24 01:14:19 |
| From: |
|
BabaG
|
|
|
|
i'm on mandriva linux 2007 and i'm having two problems. the scaffold generate thing yields this:
[babag@office 2nd_Test]$ ruby script/generate scaffold recipe recipe
exists app/controllers/
exists app/helpers/
exists app/views/recipe
exists app/views/layouts/
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
identical app/models/recipe.rb
identical test/unit/recipe_test.rb
identical test/fixtures/recipes.yml
error Before updating scaffolding from new DB schema, try creating a table for your model (Recipe)
the second problem is with mongrel:
[babag@office 2nd_Test]$ mongrel_rails start
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- http11 (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:11
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:9
from /usr/bin/mongrel_rails:18:in `load'
from /usr/bin/mongrel_rails:18
i've had some trouble getting mongrel going but have no idea what the problem might be.
thanks for a fine tutorial, even if i am frustrated at the moment. ;)
|
Showing messages 1 through 2 of 2.
-
scaffold error and mongrel problem
2007-03-24 06:10:44
Bill Walton |
[View]
-
scaffold error and mongrel problem
2007-05-17 12:31:59
iceboxstudios
[View]
The scaffold error is telling you the Rails can't find a table named Recipes in the database it's looking at. It may be that you skipped the step of creating the table.
On the other hand, if you have already created the Recipes table, then you've got a problem in your configuration. Rails bases its processing on the entries in the db\database.yml file. That's the first place to look.
The mongrel problem is definitely a configuration problem.
Are you using the LiveCD distribution we provided a link to? I've not used it myself but it's been highly recommended. At any rate, configuration problems are outside the scope of the article so I'm going to recommend you join us on the Rails mailing list to straighten this out. You can join at http://groups.google.com/group/rubyonrails-talk?hl=en
Hope to see you there!
Bill