when i used the command
User.create(:name => “admin”,:user => “admin”,:pass=> “123”)
it gives me the same error
but then i used the command
Users.create(:name => “admin”,:user => “admin”,:pass=> “123”)
it not gave me any error
now when i tried to use the command Rails c then Users.All
to show the data from the command screen
it gave me the error ( unintialized constant Ur)
when i used the command
User.create(:name => “admin”,:user => “admin”,:pass=> “123”)
it gives me the same error
but then i used the command
Users.create(:name => “admin”,:user => “admin”,:pass=> “123”)
it not gave me any error
What is the model name in user.rb? It should be User not Users.
Colin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.