On Mon, Mar 09, 2015 at 07:24:38PM +0100, Sebastjan Hribar wrote:
> I'm having problems with the console. When I try to create a new user, I get
> this error:
> 
> 2.1.5 :001 > user = User.new(username: "hribar", email: "[email protected]",
> password: "qwert", password_confirmation: "qwert")
> NameError: uninitialized constant User

Yes, this is normal.  Unlike the Rails console, the Camping console does not
include the model module.  So, you probably need to do:

>> include MyApp::Models
Object

first.

Paul

-- 
Web: http://paul.luon.net/home/      | E-mail: [email protected]
Jabber/GTalk: [email protected]          | GnuPG key ID: 0x50064181
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to