Rails Command ‘Ruby Path’ Option
On my Mac the Rails’ default path for Ruby is /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby. This becomes an issue when copying code to UNIX/Linux servers where /usr/bin/ruby is default path. Fortunately, Macs have a symbolic link ruby -> ../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby.
You can set the path to /usr/bin/ruby using the -r option to the rails when creating your app: rails -r /usr/bin/ruby <myappname>
Popularity: 28%