I open my app in RubyMine and then open the Rails console within RubyMine, choosing the appropriate environment, and it displays two error messages while looking for required gems:
1) vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:76:in `establish_connection':RuntimeError: Please install the oracle_enhanced adapter: `gem install activerecord-oracle_enhanced-adapter` (ERROR: ActiveRecord oracle_enhanced adapter could not load ruby-oci8 library. Please install ruby-oci8 gem.)
2) vendor/rails/activesupport/lib/active_support/dependencies.rb:105:in `const_missing':NameError: uninitialized constant ApplicationController::SESSION_TIMEOUT_MINS
First it says to install the activerecord-oracle_enhanced-adapter gem, then says that the activerecord-oracle_enhanced-adapter gem can't load the ruby-oci8 library. If I have to install the oracle_enhanced, how can it be that it's already running and can't find ruby-oci8? I do not have oracle_enhanced or ruby-oci8 issues when running script/console in terminal.
The second error above can't find the constants in my config/initializers/constants.rb file, which is found just fine when running the app under apache.
Could it be I need to set env variables under ~/.MacOSX/environment.plist? If so, specifically which ones? I saw the document on this wiki that details how to setup the path using the Environment Variables pref pane. Do I have to duplicate every entry in my ~/.bash_profile settings file in the environment.plist file?