Jamal S. wrote:
Its very simple, here is my code:
class BlogController < ActionController::Base
When I go to
I get this error:
uninitialized constant Blog
The table exist (blogs), but it doesn’t allow me to use the default
scaffold interface, why?
Please any help, thanks
I get it to work, if you had the same error, then you must remember that
to set the table name in a model.
ruby script/generate model blog
then open the file blog.rb
class Blog < ActiveRecord::Base
then go back to your controller:
class BlogController < ApplicationController
-Never give up!