Comments (11)
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.
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.
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.
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.
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.
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 failsHeroku
Production env failsIs 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.
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.
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.
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.
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.
Thanks, I was having the same issue. Working now!
from foundation_rails_helper.
Related Issues (20)
- Add ability to add prefix and postfix HOT 8
- Radio Button Helper Renders Value in Label HOT 2
- Needs a version bump. HOT 14
- Migrate TravisCI to container-based infrastructure HOT 1
- Remove Ruby 1.9.3 from supported Rubies HOT 13
- Support for Foundation 6 HOT 4
- fggh HOT 2
- Support rails 5 HOT 1
- alias_method_chain is deprecated HOT 6
- Failing spec with Rails 5 HOT 3
- Release a new gem version for Rails 5 support HOT 2
- Foundation 6 - Form input "hint" is now "help text" HOT 1
- Foundation 6 - Change default button class HOT 2
- Release 3.0.0 HOT 7
- Make error_for method in form_builder public HOT 1
- Overriding the field_error_proc HOT 2
- display_flash_messages return nil on redirection HOT 4
- Newest changes that include update to support rails 6 in gemspec not in rubygem.org HOT 2
- Can we release a new version of the gem so we can upgrade our rails to >= 6.1 HOT 1
- Publish v4.0.0 code on GitHub HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foundation_rails_helper.