undefined method `devise' for User(no database connection):Class

33 views
Skip to first unread message

Rafi A

unread,
Jan 14, 2015, 5:01:56 AM1/14/15
to rubyonra...@googlegroups.com
Hi All,

I am getting the error mentioned in SUBJECT while fetching the user model. I am using three different database in my application. Can I use devise gem for authentication user table in different database?

Regards,
Seeni Rafiyullah Khan A,
In Every moment, thank God.

Colin Law

unread,
Jan 14, 2015, 6:29:12 AM1/14/15
to rubyonra...@googlegroups.com
On 14 January 2015 at 10:01, Rafi A <rafi...@gmail.com> wrote:
> Hi All,
>
> I am getting the error mentioned in SUBJECT while fetching the user model. I
> am using three different database in my application. Can I use devise gem
> for authentication user table in different database?

Did you run rails generate devise:install, rails generate devise User
and rake db:migrate?

Colin

Rafi A

unread,
Jan 15, 2015, 2:13:05 AM1/15/15
to rubyonra...@googlegroups.com
Hi Colin,

Thanks. Now its working. I have used connection_ninja gem for connecting more that one database in my application. After correcting the environment configurations in proper sequence in yml file, everything started to working..


Regards,
Seeni Rafiyullah Khan A,
In Every moment, thank God.


Colin

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsXsbdZ86G8umTJO267wWP--A_1cfMqoa3xt%2BW5hGggBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages