Hi Paul,
you're right. I've mixed the two:(
It works now.
regards
Seba
Dne 09. 03. 2015 ob 21:29 je Paul van Tilburg zapisal(a):
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
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list