hi!! i am a newbie in ROR, I am getting this error i understand what the
error says but don'y know why i am getting this error.




ActiveRecord::StatementInvalid in UserController#new

Mysql::Error: Table 'user.users' doesn't exist: SHOW FULL FIELDS FROM
`users`



  def new
    @user = User.new
   end

  def edit


my user controller file contains :-

class UserController < ApplicationController

  def index
  end

  def show
  end

  def new
    @user = User.new
   end

  def edit
  end

  def update
  end

  def destroy
  end

  def home
  end

  def create
  end
end


user model contains:-

class User < ActiveRecord::Base
end


i have created the databases name user and a table named  user_info
but still i am getting this error.



can someone please help me with this error

also can someone please explain the naming rules for model and
controller.

Thanks's in Advance :)

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to