On 28 October 2013 21:19, Ralph Vince <rvinc...@gmail.com> wrote: > > > > On Mon, Oct 28, 2013 at 5:12 PM, Colin Law <clan...@googlemail.com> wrote: >> >> >> Can you paste your environment.rb here please? >> >> Colin > > > Thanks Colin! > > # Be sure to restart your web server when you modify this file. > > # Uncomment below to force Rails into production mode when > # you don't control web/app server and can't set it the proper way > # ENV['RAILS_ENV'] ||= 'production' > > # Specifies gem version of Rails to use when vendor/rails is not present > # RAILS_GEM_VERSION = '2.1.2' unless defined? RAILS_GEM_VERSION
The above line should not be commented out, but should of course reference '2.3.2'. I don't know whether that might have anything to do with it or not. > > # Bootstrap the Rails environment, frameworks, and default configuration > require File.join(File.dirname(__FILE__), 'boot') > require 'paginator' The line above should not be there, again I don't know whether it is relevant to the problem. > > Rails::Initializer.run do |config| > > # Settings in config/environments/* take precedence those specified here > > # Skip frameworks you're not going to use > #config.frameworks -= [ :action_web_service, :action_mailer ] > > # Add additional load paths for your own custom dirs > # config.load_paths += %W( #{RAILS_ROOT}/extras ) > config.load_paths += %W( #{RAILS_ROOT}/app/reports ) > > # Required for Ruports: ############ > config.after_initialize do > require "ruport" > end > # **SEE CONFIG_LOAD_PATHS ABOVE and require "app/reports/templates" > BELOW** > ########################### > > # Force all environments to use the same logger level > # (by default production uses :info, the others :debug) > # config.log_level = :debug > > # Use the database for sessions instead of the file system > # which shouldn't be used to store highly confidential information > # (create the session table with 'rake db:sessions:create') Have you done the above? Either do that and/or comment out the line below, at least until it is working. > config.action_controller.session_store = :active_record_store > > # Use SQL instead of Active Record's schema dumper when creating the test > database. > # This is necessary if your schema can't be completely dumped by the > schema dumper, > # like if you have constraints or database-specific column types > # config.active_record.schema_format = :sql > > # Activate observers that should always be running > # config.active_record.observers = :cacher, :garbage_collector > > # Make Time.zone default to the specified zone, and make Active Record > store time values > # in the database in UTC, and return them converted to the specified > local zone. > # Run "rake -D time" for a list of tasks for finding time zone names. > Comment line to use default local time. > config.active_record.default_timezone = :utc > > > # See Rails::Configuration for more options > > # Your secret key for verifying cookie session data integrity. > # If you change this key, all old sessions will become invalid! > # Make sure the secret is at least 30 characters and all random, > # no regular words or you'll be exposed to dictionary attacks. > config.action_controller.session = { > :key => "_gg_session", That should be :session_key I think, at least that is what I have, in which case the error message is wrong. > :secret => > "caf079519f0a811fa0ba9a0a3202c93f62d9f86ca4f1981harverdouccioe55e3869ee4aa8cbb48aecb518f1059103b7eb49b513f4d6ddc40d92e9488785eb90689229ad" > } > > config.gem "authlogic" > config.gem "actionmailer" > config.gem "calendar_date_select" > config.gem "paginator" > config.gem "builder" > end > > require "app/reports/templates" > > # Add new inflection rules using the following format > # (all these examples are active by default): > # Inflector.inflections do |inflect| > # inflect.plural /^(ox)$/i, '\1en' > # inflect.singular /^(ox)en/i, '\1' > # inflect.irregular 'person', 'people' > # inflect.uncountable %w( fish sheep ) > # end > > > > # Include your application configuration below > Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsxjcYa%2ByBdc9DTRv-QSfEfVCD7EGVKAxdKgyu8UoYNQg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.