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 in rails project #1666

Closed
lufeihaidao opened this issue May 21, 2015 · 5 comments
Closed

undefined method in rails project #1666

lufeihaidao opened this issue May 21, 2015 · 5 comments
Labels
Beginner friendly Documentation ✏ Ruby stale marked as a stale issue/pr (usually by a bot)

Comments

@lufeihaidao
Copy link

Ruby mode shows render, respond_to, before_action as undefined method, and shows model name like User as undefined constant. Is it a known problem?

@jesenko
Copy link

jesenko commented Aug 18, 2015

These errors are probably reported by ruby-lint gem. My ruby files got cluttered by such errors when I installed ruby-lint gem. Once installed flycheck package from syntax-checking layer automatically starts running ruby-lint.

I fixed my issue by simply running gem uninstall ruby-lint as I did not need it anyways.

@punassuming
Copy link
Contributor

There is also support for config files in for ruby-lint by supplying flycheck-rubylintrc. flycheck/flycheck#424

@lufeihaidao
Copy link
Author

@Ralesi thanks~

@StreakyCobra
Copy link
Contributor

All this seems to be a normal behaviour that need some user configurations. It probably needs to be documented in the FAQ or in the ruby layer's README. I let ruby people decide what's the best solution :-)

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beginner friendly Documentation ✏ Ruby stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

4 participants