-
Notifications
You must be signed in to change notification settings - Fork 11
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
undefined local variable or method `tweet_button' #5
Comments
If you look at https://github.com/iffyuva/social-buttons/blob/master/lib/social_buttons/view_helpers/tweet.rb https://github.com/iffyuva/social-buttons/blob/master/lib/social_buttons/engine.rb Perhaps your view doesn't inherit from this base class for some reason? If so, you can include it manually... https://github.com/iffyuva/social-buttons/blob/master/lib/social_buttons/view_helper.rb Try running the specs and see what you get. Could also be an |
I am using it in a haml file, how would a haml file inherits from ActionView::Base class ? I tried to include it like this module ApplicationHelper But I got uninitialized constant ActionView::Base::SocialButtons I really I appreciate your help, as I am from a C#, .NET background, and I am still need a hand, I am using Ruby in RubyMine, I am not using JRuby .. |
hi @hopewise, i shall look into this issue this weekend. thanks for reporting. |
ok, thanks On Wed, Dec 19, 2012 at 1:42 PM, Yuva notifications@github.com wrote:
Kind Regards,Samir Sabri |
Try fx |
+1 |
Does it work without HAML? http://haml.info/docs/yardoc/ActionView/Base.html Looks like HAML extends ActionView::Base with haml compile/template/ render methods. I don't think using HAML is the problem...? |
Having the same problem but with like_button |
Someone please debug and fix this! Should not be that hard. Simply clone it to your own repo, then reference your local clone in your Gemfile and debug from there ;) Have fun!! |
Looks like there is a branch minor-fixes that needs to be merged. I'm on it ;) |
@kristianmandrup, there are some changes on master branch of your social-button version. can you open a PR? Thanks. |
Released a new version where all specs pass on my side. Does it work for you now? I'm sorry, I have to go in 5 mins. Just had a few mins to spare... |
Still does not work // undefined method, at least not on Rails 4. |
Hi Matthias, when you find a bug like this, what you do is:
Cheers! Kristian On Thu, Apr 3, 2014 at 10:52 AM, Matthias Bellmann <notifications@github.com
|
Hi,
I tried to use this gem, but I got this error:
undefined local variable or method `tweet_button'
Any idea ?
The text was updated successfully, but these errors were encountered: