New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of the helper bootstrap_flash doesn't work when precompiling assets #338
Comments
OK, I fixed this issue by copying the bootstrap_flash helper ( https://github.com/seyhunak/twitter-bootstrap-rails/blob/master/app/helpers/bootstrap_flash_helper.rb ) and storing it locally in the app. Would be good if it installed these into the application by default so that those who precompile avoid this issue in the future |
+1 "Would be good if it installed these into the application by default so that those who precompile avoid this issue in the future" I had an issue pushing to heroku do to this. Bundled with git commit 'dd7598bf6844' |
+1 The same happened to me. But it was working on heroku on my earlier commits. Any explanation for this behavior? |
+1 Just got bitten by this with a Heroku deploy. Will use workaround suggested by @betjaminrichards Thanks. |
+1. This should be reopened. |
Same problem here. |
+1 |
1 similar comment
+1 |
+1 to repoen |
👍 I'd also suggest adding instructions to include |
@lenart does that solve the problem ? |
No. I still needed to create a helper inside my app (copied from source). On 23. nov. 2012, at 18:25, Len Weincier notifications@github.com wrote: @lenart https://github.com/lenart does that solve the problem ? — |
Happened to me as well with 2.1.3 version of gem. |
Apologies for not responding earlier on this. I've now reopened the issue. |
👍 |
1 similar comment
👍 |
Having this problem as well. I'm looking at how to best fix it, and I'm unsure- aside from inserting it into the helpers as other people have done. |
+1 |
4 similar comments
+1 |
+1 |
👍 |
+1 |
importing https://github.com/seyhunak/twitter-bootstrap-rails/blob/master/app/helpers/bootstrap_flash_helper.rb to the rails app's app/helper fixed it for me. using twitter-bootstrap-rails v2.1.9 |
+1 (same happend to me as i needed to precompile assets before deploying to heroku...) |
+1 |
3 similar comments
+1 |
+1 |
+1 |
+1. Manually adding bootstrap_flash_helper did indeed solve the problem. This shouldn't need to be worked around though! |
I agree with @bpartridge, is there a reason there has been no movement on this? Is been over seven months, can we at least get a shout out on the Readme so people and stop tripping over this? Any other support for @lucasdavila idea? |
@CMToups there is already a Gem I linked to above. I think this gem should just get rid of the flash helpers, they don't provide much anyways. |
I used the bootstrap_helper workaround, but now my stylesheets don't seem to be loading, it's just all text. Anyone have a similar issue? |
+1 adding bootstrap flash helper solved |
+1 adding bootstrap flash helper fixed my heroku deploy, Thanks |
+1 adding bootstrap flash helper helped me in fixing the issue on production. |
had something similar when i switched over to the sass version of bootstrap. pulling this bootstrap_helper into my app cleared it https://github.com/seyhunak/twitter-bootstrap-rails/blob/master/app/helpers/bootstrap_flash_helper.rb |
+1 adding bootstrap flash helper solved |
The gem doesn't belong in the assets group specifically because of the helpers and generators. It doesn't affect asset compilation not having it in the group. Please take a look at the teststrap app if you need to look at an implementation of the gem running on heroku. |
+1 - Copying the helper solved the issue for me too using 2.2.6 |
+1 - Same solution worked for me also. |
After literally dozens of posts asserting the same solution (and assuming each post-er had the same problem and then had to find this thread for the solution...) perhaps a brief note about this in the README.md would be helpful. |
Yes, It will be a good solution. On Tue, Jun 18, 2013 at 6:30 PM, Tom Wilson notifications@github.comwrote:
Anurag Pattnaik |
I'm using rails 4 with the 3.0 branch, and I am still getting the |
+1 |
1 similar comment
+1 |
+1 |
+! |
+1 |
3 similar comments
+1 |
+1 |
+1 |
also happened to me in productio, adding the bootstrap flash helper fixed it |
precompiled assets and the pushed to Heroku. Now get the following error:
The text was updated successfully, but these errors were encountered: