Michael- 

Thanks. This is encouraging. I was just trying to start and app from scratch 
and it just looks like the generators are not there in the gem sequel_devise 
that I used. I really don't need the generators for what I want to do which is 
change an old project from a rest-auth hack to devise. I will give this more of 
a try this weekend. 


Thanks again, 


-GregD 

----- Original Message -----

From: "mhayden" <[email protected]> 
To: [email protected] 
Sent: Monday, October 15, 2012 12:36:42 PM 
Subject: Re: I know this has been asked before, but I'm not finding the latest 
on rails 3 using sequel with devise. 

I use Sequel and Devise for the viewfluent.com website. I'm down rev on a 
number of gems, but here are the relevant gems I currently require: 



gem 'rails', '3.0.11' 


gem 'mysql2' 
gem 'sequel', '3.30.0' 
gem 'sequel-rails' 


# authentication related 
#gem 'devise', '1.3.4' 
gem 'devise', '1.5.2' 
gem 'orm_adapter' 
gem 'orm_adapter-sequel', '~>0.0.3' 
#gem 'devise_sequel' 
#gem 'devise_sequel', :path => "../arthurdandrea-devise_sequel-933d0dd" 
#gem 'devise_sequel', :path => "/home/mhayden/github/mehayden/devise_sequel" 
gem 'devise_sequel', :git => "https://github.com/mehayden/devise_sequel.git"; 
gem 'omniauth' 
gem 'omniauth-facebook' 
gem 'omniauth-twitter' 


I had to enhance the devise_sequel gem to handle multiple calls to the 
before_validation hook (which showed up in devise 1.5.2) that broke older 
wrapper code. 


Michael 
On Monday, October 15, 2012 8:12:14 AM UTC-7, GregD wrote: 

All, 


Has anyone used Sequel in a Rails 3 app using devise authentication? I'd like 
to use devise, but if someone has a better suggestion please let me know. I 
tried an app from scratch, followed some recent instructions from these 2 
sources: 


For Rails 3 and Sequel 
http://blog.maxaller.name/2012/07/quick-start-with-rails-3-sequel-3/ 





For Rails 3 Sequel and Devise 
http://rosenfeld.herokuapp.com/en/articles/2012-04-18-getting-started-with-sequel-in-rails
 



When I try to generate my device model I get: 
rails generate devise User 
.... 

/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in
 `require': cannot load such file -- devise/orm/sequel (LoadError) 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in
 `block in require' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in
 `load_dependency' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in
 `require' 
from /home/gregd/development/sequel_devise/config/initializers/devise.rb:16:in 
`block in <top (required)>' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/devise-2.1.2/lib/devise.rb:247:in 
`setup' 
from /home/gregd/development/sequel_devise/config/initializers/devise.rb:3:in 
`<top (required)>' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in
 `load' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in
 `block in load' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in
 `load_dependency' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in
 `load' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/railties-3.2.8/lib/rails/engine.rb:588:in
 `block (2 levels) in <class:Engine>' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/railties-3.2.8/lib/rails/engine.rb:587:in
 `each' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/railties-3.2.8/lib/rails/engine.rb:587:in
 `block in <class:Engine>' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/railties-3.2.8/lib/rails/initializable.rb:30:in
 `instance_exec' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/railties-3.2.8/lib/rails/initializable.rb:30:in
 `run' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/railties-3.2.8/lib/rails/initializable.rb:55:in
 `block in run_initializers' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/railties-3.2.8/lib/rails/initializable.rb:54:in
 `each' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/railties-3.2.8/lib/rails/initializable.rb:54:in
 `run_initializers' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/railties-3.2.8/lib/rails/application.rb:136:in
 `initialize!' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in
 `method_missing' 
from /home/gregd/development/sequel_devise/config/environment.rb:5:in `<top 
(required)>' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in
 `require' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in
 `block in require' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in
 `load_dependency' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in
 `require' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/railties-3.2.8/lib/rails/application.rb:103:in
 `require_environment!' 
from 
/usr/local/rvm/gems/ruby-1.9.3-p0@euchre/gems/railties-3.2.8/lib/rails/commands.rb:25:in
 `<top (required)>' 
from script/rails:6:in `require' 
from script/rails:6:in `<main>' 




This looks like the active support railtie for sequel and devise are not 
compatible that devise is expecting a devise/orm/sequel file. However, 
sequel-devise is suppose to provide that. So, confused. 




-GregD 






-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group. 
To view this discussion on the web visit 
https://groups.google.com/d/msg/sequel-talk/-/ir1IpJzT55wJ . 
To post to this group, send email to [email protected]. 
To unsubscribe from this group, send email to 
[email protected]. 
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en. 

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to