RubyMine Rails-specific Code Completion
And finally, the Rails! Rails is probably why most of us is using Ruby, right? So, RubyMine helps coding when Ruby on Rails is used.
Ruby on Rails Smartness #1
When a variable holds a model object RubyMine knows its type, its details and wisely offers the code completion.
And once you select first attribute to
find_by you can try once again and RubyMine suggests again to create a complex find statement.
Ruby on Rails Smartness #2
Many Rails methods expect parameters of a certain kind or format. One example of such methods is validation methods (
RubyMine knows what should be in completion list after such methods, finds and suggests appropriate names.
Ruby on Rails Smartness #3
Quite often methods take hashes as parameters with only certain key values, ignoring the others.
class AdminController :index, :partial => ‘bye’
Some parameters of
render hash in a controller are
When these are used the right part of the hash is clear.
:partial it is partial view,
:action â€” the action from the controller or its parent.
For other supported parameters check the documentation.