Git Product home page Git Product logo

Comments (8)

muscardinus avatar muscardinus commented on July 29, 2024

while trying to run rails console (the project inculeds feedzirra stuff) on rails 3, I get the following error in loofah:

user@host:~/my_rails_project$ rails server
/home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta/lib/rails.rb:40:in configuration': undefined methodconfig' for nil:NilClass (NoMethodError)
from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/loofah-0.4.7/lib/loofah.rb:89:in <top (required)>' from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:167:inrequire'
from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:167:in block in require' from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:537:innew_constants_in'
from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:167:in require' from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/feedzirra-0.0.23/lib/feedzirra.rb:6:in<top (required)>'
from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/bundler-0.9.13/lib/bundler/runtime.rb:45:in require' from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/bundler-0.9.13/lib/bundler/runtime.rb:45:inblock (2 levels) in require'
from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/bundler-0.9.13/lib/bundler/runtime.rb:40:in each' from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/bundler-0.9.13/lib/bundler/runtime.rb:40:inblock in require'
from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/bundler-0.9.13/lib/bundler/runtime.rb:39:in each' from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/bundler-0.9.13/lib/bundler/runtime.rb:39:inrequire'
from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/bundler-0.9.13/lib/bundler.rb:73:in require' from /home/myHome/my_rails_project/config/application.rb:6:in<top (required)>'
from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta/lib/rails/commands.rb:36:in require' from /home/myHome/.rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta/lib/rails/commands.rb:36:in<top (required)>'
from /home/myHome/my_rails_project/script/rails:10:in require' from /home/myHome/my_rails_project/script/rails:10:in

'

Hope you can fix this soon.

from loofah.

mariozig avatar mariozig commented on July 29, 2024

I believe there is a hack to get around the error but this is no solution ATM: http://www.mythoughtpot.com/2010/02/10/feedzirra-on-rails3/

from loofah.

flavorjones avatar flavorjones commented on July 29, 2024

possibly-relevant link: https://gist.github.com/9fcf658fc4f559b97c2c

from loofah.

technicalpickles avatar technicalpickles commented on July 29, 2024

Hey all, think I have a proper fix for this. Added a railtie, and some conditional logic to to load it in rails 3: http://github.com/technicalpickles/loofah

from loofah.

flavorjones avatar flavorjones commented on July 29, 2024

Howdy. I'll take a look, but I don't see any tests for Rails 3 in your repo :) That's actually what I'm dragging my feet on. If you're interested, you can take a look at the rails_test subdirectory for how I attempted (badly) to workaround gem paths in the pre-bundler era.

from loofah.

flavorjones avatar flavorjones commented on July 29, 2024

Hey, ignore that comment. I'm going to rewrite the rails test suite using bundler and hope that I'm not going to be testing bundler itself on older versions of rails. Josh -- thanks for the railtie work.

from loofah.

muscardinus avatar muscardinus commented on July 29, 2024

Thanks Josh, your solution is working.

Mike -- looking forward to the "official" support for Rails 3.

from loofah.

flavorjones avatar flavorjones commented on July 29, 2024

I've merged Josh's changes into the new gem, 'loofah-activerecord' 1.0.0.beta.1, which is Rails 3 compatible. See http://github.com/flavorjones/loofah-activerecord

Also see http://librelist.com/browser//loofah/2010/7/18/thoughts-on-splitting-up-the-loofah-gem/ for rationale on the new gem.

from loofah.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.