Venkat Ch
Venkat Ch

Reputation: 1268

Rails: `bundle open rails` command not opening rails gem folder

I'm trying to open rails gem folder using bundle open rails command in my local system. For this I have set export EDITOR='subl -w' in .bashrc file.

I'm not sure why it doesn't work for rails gem and when I try to open other gems listed in my Gemfile, it works fine.

Any help on what I'm doing wrong?

Upvotes: 7

Views: 2196

Answers (1)

mecampbellsoup
mecampbellsoup

Reputation: 1501

I believe this behavior you're observing has something to do with how the Rails gem is structured - that is, all the logic has been moved into dedicated modules like ActiveRecord, ActionController, etc. I am seeing the same behavior - bundle open rails opens to an empty directory pointing to the gempath - but bundle open activerecord, for example, works as expected.

I'm using export EDITOR = vi personally, though I don't think it has anything to do with that.

Upvotes: 3

Related Questions