Skip to content
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 method `draw_icon' #76

Open
maesitos opened this issue Jun 11, 2016 · 7 comments
Open

undefined method `draw_icon' #76

maesitos opened this issue Jun 11, 2016 · 7 comments
Assignees
Labels

Comments

@maesitos
Copy link

maesitos commented Jun 11, 2016

I'm getting
NoMethodError - undefined method 'draw_icon' for #<#<Class:0x007fc551a723a8>:0x007fc54bd0dc30>: lit (0.2.2) app/views/lit/localization_keys/index.html.erb:12

when trying to access
/lit/localization_keys

Any idea?

Environment:
rails 3.2.12
ruby 2.0.0p643
Lit 0.2.2

@mlitwiniuk
Copy link
Member

@maesitos this method is defined in LocalizationsHelper here: https://github.com/prograils/lit/blob/master/app/helpers/lit/localizations_helper.rb#L3 - have you made any customization or have any idea, why this helper is not loaded in your environment?

@maesitos
Copy link
Author

@mlitwiniuk I simply added gem 'lit' into my Gemfile and run bundle install. How can I know it's correctly loaded?

$ bundle exec rails console
initializing Lit
:001 > defined? Lit
 => "constant" 

At least Lit is correctly loaded.

@mlitwiniuk
Copy link
Member

What about:

Lit::LocalizationsHelper.method_defined?(:draw_icon)

?

@maesitos
Copy link
Author

$ bundle exec rails console
initializing Lit
2.0.0-p643 :001 > Lit::LocalizationsHelper.method_defined?(:draw_icon)
 => true 

@maesitos
Copy link
Author

@mlitwiniuk
Copy link
Member

Answer suggested in this reply was any helpful? (To include Lit::Engine.helpers in your ApplicationController)

@maesitos
Copy link
Author

it didn't help either :(

@pnikrat pnikrat added the bug label Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants