Rails console does not complete?

A few rails console oddities:
- I couldn't get it to complete my models. For example, I had defined a model named Patient. I tried to type Pa<Ctrl+Space> -- it did not complete. I had to type Patient.new which was happily taken. I wonder if completion works in Rails console.
- How do I run console in a sandboxed environment? There's no way (I couldn't find any) to pass --sandbox to the Rails console.

Thanks,
Kedar

2 comments
Comment actions Permalink

Should I just use the command line Rails console?

0
Comment actions Permalink

Hello Kedar,

- I couldn't get it to complete my models. For example, I had defined a model named Patient. I tried to type Pa<Ctrl+Space> -- it did not complete. I had to type Patient.new which was happily taken. I wonder if completion works in Rails console.

At the moment only common ruby completion works. Rails uses lots of implicit dynamic requires(e.g you needn't require models/controllers files manually) and it isn't supported by code insight engine in Rails Console although works in editor. Please file a feature request.

- How do I run console in a sandboxed environment? There's no way (I couldn't find any) to pass --sandbox to the Rails console.

Please file a feature request (http://youtrack.jetbrains.net/issues/ruby) for this option.

0

Please sign in to leave a comment.