Skip to content

Instantly share code, notes, and snippets.

@jesjos
Created June 13, 2010 13:08
Show Gist options
  • Save jesjos/436643 to your computer and use it in GitHub Desktop.
Save jesjos/436643 to your computer and use it in GitHub Desktop.
# Console dump
jesper-josefssons-macbook-pro:blog2 jesper$ rails server
=> Booting WEBrick
=> Rails 3.0.0.beta3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/session/cookie_store.rb:178:in `ensure_session_key': A key is required to write a cookie containing the session data. Use config.action_controller.session_store :cookie_store, { :key => "_myapp_session" } in config/application.rb (ArgumentError)
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/session/cookie_store.rb:88:in `initialize'
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/stack.rb:74:in `new'
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/stack.rb:74:in `build'
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/stack.rb:130:in `build'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/inflector/methods.rb:103:in `inject'
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/stack.rb:130:in `each'
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/stack.rb:130:in `inject'
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/stack.rb:130:in `build'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/application.rb:128:in `app'
from /Users/jesper/.bundle/ruby/1.8/bundler/gems/haml-f80647e55c738bc68fcbb53bae23448ef58de128-edge-gem/lib/sass/plugin/rails.rb:16
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:209:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:209:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:195:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:523:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:195:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:209:in `require'
from /Users/jesper/.bundle/ruby/1.8/bundler/gems/haml-f80647e55c738bc68fcbb53bae23448ef58de128-edge-gem/lib/sass/plugin.rb:268
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:209:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:209:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:195:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:523:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:195:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:209:in `require'
from /Users/jesper/.bundle/ruby/1.8/bundler/gems/haml-f80647e55c738bc68fcbb53bae23448ef58de128-edge-gem/lib/haml.rb:36:in `init_rails'
from /Users/jesper/.bundle/ruby/1.8/bundler/gems/haml-f80647e55c738bc68fcbb53bae23448ef58de128-edge-gem/lib/haml.rb:36:in `each'
from /Users/jesper/.bundle/ruby/1.8/bundler/gems/haml-f80647e55c738bc68fcbb53bae23448ef58de128-edge-gem/lib/haml.rb:36:in `init_rails'
from /Users/jesper/.bundle/ruby/1.8/bundler/gems/haml-f80647e55c738bc68fcbb53bae23448ef58de128-edge-gem/lib/haml/railtie.rb:7
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/lazy_load_hooks.rb:7:in `instance_eval'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/lazy_load_hooks.rb:7:in `on_load'
from /Users/jesper/.bundle/ruby/1.8/bundler/gems/haml-f80647e55c738bc68fcbb53bae23448ef58de128-edge-gem/lib/haml/railtie.rb:5
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:209:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:209:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:195:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:523:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:195:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:209:in `require'
from /Users/jesper/.bundle/ruby/1.8/bundler/gems/haml-f80647e55c738bc68fcbb53bae23448ef58de128-edge-gem/lib/haml.rb:43
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:209:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:209:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:195:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:523:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:195:in `load_dependency'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:209:in `require'
from /Users/jesper/Documents/Rails/blog2/vendor/plugins/haml/init.rb:5
from /Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/plugin.rb:71
from /Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/initializable.rb:25:in `instance_exec'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/initializable.rb:25:in `run'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/initializable.rb:55:in `run_initializers'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/initializable.rb:54:in `each'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/initializable.rb:54:in `run_initializers'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/application.rb:109:in `initialize!'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/application.rb:81:in `send'
from /Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta3/lib/rails/application.rb:81:in `method_missing'
from /Users/jesper/Documents/Rails/blog2/config/environment.rb:5
from config.ru:3:in `require'
from config.ru:3
from /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/builder.rb:46:in `instance_eval'
from /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/builder.rb:46:in `initialize'
from config.ru:1:in `new'
from config.ru:1
# ./config/application.rb
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# If you have a Gemfile, require the gems listed there, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env) if defined?(Bundler)
module Blog2
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Add additional load paths for your own custom dirs
# config.load_paths += %W( #{config.root}/extras )
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
# Activate observers that should always be running
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
# Configure generators values. Many other options are available, be sure to check the documentation.
config.generators do |g|
# g.orm :active_record
# g.template_engine :erb
# g.test_framework :test_unit, :fixture => true
g.template_engine :haml
end
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]
config.action_dispatch.session_store :cookie_store, { :key => "_blog2_session"}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment