I want to create a admin section for my website that is separate from the normal application which is accessible from /admin/controller
I tried creating a scaffold for it using :
$ruby script/generate scaffold admin::scheme
But when I go to /admin/schemes I get this error :
ActiveRecord::StatementInvalid in Admin/schemesController#new
Mysql::Error: Table 'demo_development.schemes' doesn't exist: SHOW FIELDS FROM `schemes`
The migration file creates a table called "admin_schemes"
The model defined is "class Admin::Scheme < ActiveRecord::Base" in the file app/models/admin/scheme.rb
The controller defined is "class Admin::SchemesController < ApplicationController" in the file app/controllers/admin/schemes_controllers.rb
The views are defined in the directroy app/views/admin/schemes/*