When I use the one in RubyMine I don't see autocompletion for helpers (like current_user, destroy_user_session_path, etc.). It's very bad :( Can someone help me? :)
Devise is the cornerstone gem for Ruby on Rails authentication. With Devise, creating a User that can log in and out of your application is so simple because Devise takes care of all the controllers necessary for user creation ( users_controller ) and for user sessions ( users_sessions_controller ).
Short answer:
You're not doing anything wrong. Right now, it's the best Rubymine can do.
Slightly longer answer:
As you probably know, Ruby can be a very dynamic language. Devise relies heavily on the metaprogramming capabilities of the language. The helpers, such as current_user
are generated at runtime, rendering Rubymine's static analysis capabilities ineffective.
Rubymine would need to have special support for Devise and, as far as I know, it just doesn't.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With