Run annotated pearls inside a ruby

New to rails - what am I missing? Working with the Hartl Rails Tutorial, I was able to find ways to run all the previous "bundle exec" commands from RubyMine. But now I have installed the annotated gem (chapter 6); in the training instructions, run "bundle exec annotate". Is there an equivalent that can be run from within Rails?

(I found how to run RSpec, git push, etc. from inside Rubymine, but I cannot find how to do this.)

Thanks in advance for your help.

+6
source share
2 answers

(RubyMine 5.0)

  • Run> Change Configurations ...
  • Add New Configuration (green + upper left)> Gem Command
  • Name = "Annotate Gem"
  • Configuration tab> Gem Name = Annotate, Executable Name = Annotate
  • Bundler tab> enable "Run script in package context (bundle exec)"
  • OK to save the configuration
  • Toolbar> Configuration selector = "Annotate Gem", click "Run"
  • The output is displayed in the Start panel.
+10
source

I had a problem deleting it in the ubuntu virtual field, the path that was sent from the windows was like that and could not be found.

\usr\local\bin\annotate 

I just added the correct path to the input of the Ruby arguments:

  -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /usr/local/bin/annotate 

I was just starting out with Rubymin, and I doubt it is the right method.

0
source

All Articles