Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I want to create new user record through console, @user = User.create([{:name => "My name", :user_type => "nice_user"}]) when saving this @user.save, giving error undefined method save for Array

share|improve this question
1  
What programming language is this? You need to tag your question with the language you're using. –  jwodder Jul 16 '14 at 17:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.