Coder Social home page Coder Social logo

Comments (11)

sgruhier avatar sgruhier commented on July 17, 2024

could you share your application_helper.rb ?
in mine I have this

module ApplicationHelper
  include FoundationRailsHelper::FlashHelper
  ...
end

It works even in production

from foundation_rails_helper.

keilmillerjr avatar keilmillerjr commented on July 17, 2024
module ApplicationHelper
    include FoundationRailsHelper::FlashHelper
end

I'm really stumped. I created a test app and it works fine in production mode.

I have deleted my gemset and even deleted my ruby multiple times. Tested in production mode locally and on heroku. Is it possible that it's conflicting with another gem or something? I really appreciate any help.

Thanks, Keil.

from foundation_rails_helper.

keilmillerjr avatar keilmillerjr commented on July 17, 2024

Still stumped on what exactly is causing my issue. Anyone have any ideas of things to try?

Heres my full error log:

=> Booting Thin
=> Rails 3.2.8 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/keiljr/Projects/keilmiller/app/helpers/application_helper.rb:2:in `<module:ApplicationHelper>': uninitialized constant FoundationRailsHelper::FlashHelper (NameError)
    from /Users/keiljr/Projects/keilmiller/app/helpers/application_helper.rb:1:in `<top (required)>'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/actionpack-3.2.8/lib/abstract_controller/helpers.rb:135:in `block in modules_for_helpers'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/actionpack-3.2.8/lib/abstract_controller/helpers.rb:131:in `map!'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/actionpack-3.2.8/lib/abstract_controller/helpers.rb:131:in `modules_for_helpers'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/actionpack-3.2.8/lib/action_controller/metal/helpers.rb:92:in `modules_for_helpers'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/actionpack-3.2.8/lib/abstract_controller/helpers.rb:95:in `helper'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/actionpack-3.2.8/lib/abstract_controller/helpers.rb:159:in `default_helper_module!'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/actionpack-3.2.8/lib/abstract_controller/helpers.rb:22:in `block in inherited'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/actionpack-3.2.8/lib/abstract_controller/helpers.rb:22:in `class_eval'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/actionpack-3.2.8/lib/abstract_controller/helpers.rb:22:in `inherited'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/actionpack-3.2.8/lib/action_controller/metal/hide_actions.rb:32:in `inherited'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:135:in `inherited'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/actionpack-3.2.8/lib/abstract_controller/railties/routes_helpers.rb:7:in `block (2 levels) in with'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/actionpack-3.2.8/lib/action_controller/railties/paths.rb:7:in `block (2 levels) in with'
    from /Users/keiljr/Projects/keilmiller/app/controllers/application_controller.rb:1:in `<top (required)>'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/engine.rb:438:in `each'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/engine.rb:438:in `block in eager_load!'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/engine.rb:436:in `each'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/engine.rb:436:in `eager_load!'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /Users/keiljr/Projects/keilmiller/config/environment.rb:5:in `<top (required)>'
    from /Users/keiljr/Projects/keilmiller/config.ru:4:in `block in <main>'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
    from /Users/keiljr/Projects/keilmiller/config.ru:1:in `new'
    from /Users/keiljr/Projects/keilmiller/config.ru:1:in `<main>'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/commands/server.rb:46:in `app'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/commands/server.rb:70:in `start'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/commands.rb:55:in `block in <top (required)>'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/commands.rb:50:in `tap'
    from /Users/keiljr/.rvm/gems/ruby-1.9.3-p194@keilmiller/gems/railties-3.2.8/lib/rails/commands.rb:50:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

from foundation_rails_helper.

sgruhier avatar sgruhier commented on July 17, 2024

no idea
locally, in production environment it works? It's only on heroku you have the issue?

On Oct 5, 2012, at 2:29 AM, Keil Miller [email protected] wrote:

Still stumped on what exactly is causing my issue. Anyone have any ideas of things to try?


Reply to this email directly or view it on GitHub.

from foundation_rails_helper.

keilmillerjr avatar keilmillerjr commented on July 17, 2024

Locally
Devopment env works
Production env fails

Heroku
Production env fails

Is it possible that its incompatible with one of my other gems? I'm just not sure where to start debugging. Any ideas appreciated.

from foundation_rails_helper.

sgruhier avatar sgruhier commented on July 17, 2024

I guess you cannot share your application?

On Oct 5, 2012, at 12:41 PM, Keil Miller [email protected] wrote:

Locally
Devopment env works
Production env fails

Heroku
Production env fails

Is it possible that its incompatible with one of my other gems? I'm just not sure where to start debugging. Any ideas appreciated.


Reply to this email directly or view it on GitHub.

from foundation_rails_helper.

keilmillerjr avatar keilmillerjr commented on July 17, 2024

I just pushed a local branch without my amazon s3 keys to github. If you could check it out when ever you have free time it would be greatly appreciated. https://github.com/keilmillerjr/keilmiller

from foundation_rails_helper.

sgruhier avatar sgruhier commented on July 17, 2024

why did you put
gem 'foundation_rails_helper', # https://github.com/sgruhier/foundation_rails_helper
#:git => 'git://github.com/sgruhier/foundation_rails_helper.git',
:git => 'https://github.com/keilmillerjr/foundation_rails_helper.git',
:branch => 'master'

in assets group?
move it outside that group and it will work

Seb
On Oct 5, 2012, at 11:58 PM, Keil Miller [email protected] wrote:

I just pushed a local branch without my amazon s3 keys to github. If you could check it out when ever you have free time it would be greatly appreciated. https://github.com/keilmillerjr/keilmiller


Reply to this email directly or view it on GitHub.

from foundation_rails_helper.

keilmillerjr avatar keilmillerjr commented on July 17, 2024

Thank you very much for helping me even though it wasn't an issue directly related to your gem. I put it in assets group without thinking because thats where zurb recommends placing their foundation gem. I wasn't thinking. Thanks again. :)

from foundation_rails_helper.

rbucks avatar rbucks commented on July 17, 2024

Thanks guys! This solved my problem too.

Your gem worked in the assets group on my dev environment and I couldn't figure out this exact same error on my production (Phusion Passenger) environment. I think in the installation instructions it would help to specifically say not to put it in the assets group like Zurb's zurb-foundation gem.

from foundation_rails_helper.

djalmaaraujo avatar djalmaaraujo commented on July 17, 2024

Thanks, I was having the same issue. Working now!

from foundation_rails_helper.

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.