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: "s...@test.com", > 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: p...@luon.net Jabber/GTalk: p...@luon.net | GnuPG key ID: 0x50064181 _______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list