Help me about Bcrypt-ruby

137 views
Skip to first unread message

haxuan lac

unread,
Mar 19, 2013, 2:37:05 AM3/19/13
to rubyonra...@googlegroups.com
I'm create a login form using Bcrypt-ruby but have error:

uninitialized constant User::BCrypt
I had setup Bcrypt-ruby in Gemfile

gem "bcrypt-ruby", :require => "bcrypt"

and restart,rake db:migrate but not run.I had run bundle:install,bundle:
update and see Bcrypt had installed.
i'm afraid that i use gem 'rails', '3.2.1' in Gemfile
Could you help me solve this problem...Thanks

--
Posted via http://www.ruby-forum.com/.

tamouse mailing lists

unread,
Mar 20, 2013, 10:00:48 PM3/20/13
to rubyonra...@googlegroups.com
On Tue, Mar 19, 2013 at 1:37 AM, haxuan lac <li...@ruby-forum.com> wrote:
> I'm create a login form using Bcrypt-ruby but have error:
>
> uninitialized constant User::BCrypt

What is User::BCrypt supposed to be? Where/how did you define it? (It
appears you didn't, actually. Show some code so we have a half a
chance of helping you.)


> I had setup Bcrypt-ruby in Gemfile
>
> gem "bcrypt-ruby", :require => "bcrypt"
>
> and restart,rake db:migrate but not run.I had run bundle:install,bundle:
> update and see Bcrypt had installed.
> i'm afraid that i use gem 'rails', '3.2.1' in Gemfile
> Could you help me solve this problem...Thanks
>
> --
> 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 rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages