On 2 February 2014 17:04, Astm Ali <[email protected]> wrote:
> 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


> 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)
>
> --
> 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].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/eda31d7813311d395706c0d967414601%40ruby-forum.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsr_t6%2BGqgDhTBWJAAe5p5K2V2_NCBAXEhUzCpbUEA1MA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to