authengine 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. data/.gitignore +10 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +4 -0
  4. data/README.md +86 -0
  5. data/Rakefile +31 -0
  6. data/app/assets/images/message_block/back.gif +0 -0
  7. data/app/assets/images/message_block/back_m.gif +0 -0
  8. data/app/assets/images/message_block/confirmation.gif +0 -0
  9. data/app/assets/images/message_block/confirmation_m.gif +0 -0
  10. data/app/assets/images/message_block/error.gif +0 -0
  11. data/app/assets/images/message_block/error_m.gif +0 -0
  12. data/app/assets/images/message_block/info.gif +0 -0
  13. data/app/assets/images/message_block/info_m.gif +0 -0
  14. data/app/assets/images/message_block/notice.gif +0 -0
  15. data/app/assets/images/message_block/notice_m.gif +0 -0
  16. data/app/assets/images/message_block/warn.gif +0 -0
  17. data/app/assets/images/message_block/warn_m.gif +0 -0
  18. data/app/assets/stylesheets/authengine.css +3 -0
  19. data/app/assets/stylesheets/message_block.css +45 -0
  20. data/app/controllers/authengine/accounts_controller.rb +56 -0
  21. data/app/controllers/authengine/action_roles_controller.rb +22 -0
  22. data/app/controllers/authengine/actions_controller.rb +17 -0
  23. data/app/controllers/authengine/roles_controller.rb +35 -0
  24. data/app/controllers/authengine/sessions_controller.rb +75 -0
  25. data/app/controllers/authengine/user_roles_controller.rb +55 -0
  26. data/app/controllers/authengine/useractions_controller.rb +17 -0
  27. data/app/controllers/authengine/users_controller.rb +137 -0
  28. data/app/helpers/application_helper.rb +2 -0
  29. data/app/helpers/authengine/users_helper.rb +11 -0
  30. data/app/helpers/roles_helper.rb +2 -0
  31. data/app/mailers/authengine/user_mailer.rb +53 -0
  32. data/app/models/action.rb +54 -0
  33. data/app/models/action_role.rb +29 -0
  34. data/app/models/authenticated_system.rb +179 -0
  35. data/app/models/authorized_system.rb +41 -0
  36. data/app/models/controller.rb +124 -0
  37. data/app/models/role.rb +71 -0
  38. data/app/models/session.rb +3 -0
  39. data/app/models/session_role.rb +17 -0
  40. data/app/models/user.rb +191 -0
  41. data/app/models/user_observer.rb +14 -0
  42. data/app/models/user_role.rb +4 -0
  43. data/app/models/useraction.rb +56 -0
  44. data/app/views/authengine/accounts/edit.html.erb +19 -0
  45. data/app/views/authengine/actions/create.html.erb +2 -0
  46. data/app/views/authengine/actions/destroy.html.erb +2 -0
  47. data/app/views/authengine/actions/edit.html.erb +80 -0
  48. data/app/views/authengine/actions/index.html.haml +26 -0
  49. data/app/views/authengine/actions/new.html.erb +2 -0
  50. data/app/views/authengine/actions/show.html.erb +8 -0
  51. data/app/views/authengine/actions/update.html.erb +11 -0
  52. data/app/views/authengine/admin/_show.html.haml +5 -0
  53. data/app/views/authengine/layouts/authengine.html.haml +9 -0
  54. data/app/views/authengine/roles/index.html.haml +12 -0
  55. data/app/views/authengine/roles/new.html.haml +15 -0
  56. data/app/views/authengine/roles/show.html.erb +8 -0
  57. data/app/views/authengine/sessions/new.html.haml +18 -0
  58. data/app/views/authengine/user_mailer/activation.html.erb +5 -0
  59. data/app/views/authengine/user_mailer/forgot_password.html.erb +3 -0
  60. data/app/views/authengine/user_mailer/message_to_admin.html.erb +2 -0
  61. data/app/views/authengine/user_mailer/reset_password.html.erb +1 -0
  62. data/app/views/authengine/user_mailer/signup_notification.html.erb +5 -0
  63. data/app/views/authengine/user_roles/edit.html.haml +10 -0
  64. data/app/views/authengine/user_roles/index.html.haml +14 -0
  65. data/app/views/authengine/user_roles/new.html.haml +8 -0
  66. data/app/views/authengine/useractions/_useraction.html.erb +6 -0
  67. data/app/views/authengine/useractions/index.html.erb +13 -0
  68. data/app/views/authengine/useractions/show.html.haml +14 -0
  69. data/app/views/authengine/useractions/update.html.erb +2 -0
  70. data/app/views/authengine/users/_no_privacy_policy.html.haml +1 -0
  71. data/app/views/authengine/users/_privacy_policy_example.html.haml +36 -0
  72. data/app/views/authengine/users/_user.html.haml +19 -0
  73. data/app/views/authengine/users/edit.html.haml +24 -0
  74. data/app/views/authengine/users/index.html.haml +10 -0
  75. data/app/views/authengine/users/new.html.haml +31 -0
  76. data/app/views/authengine/users/show.html.haml +19 -0
  77. data/app/views/authengine/users/signup.html.haml +52 -0
  78. data/authengine.gemspec +44 -0
  79. data/config/application.rb +1 -0
  80. data/config/routes.rb +43 -0
  81. data/db/migrate/20110320171029_create_authengine_tables.rb +90 -0
  82. data/db/migrate/20110924165900_add_parent_id_to_roles_table.rb +5 -0
  83. data/db/migrate/20110925202800_add_type_field_to_user_roles_table.rb +5 -0
  84. data/db/migrate/20111003074700_add_indexes_to_several_tables.rb +7 -0
  85. data/db/seeds.rb +7 -0
  86. data/lib/application_helper.rb +19 -0
  87. data/lib/authengine.rb +5 -0
  88. data/lib/authengine/engine.rb +44 -0
  89. data/lib/authengine/testing_support/factories/user_factory.rb +13 -0
  90. data/lib/authengine/version.rb +3 -0
  91. data/lib/rails/generators/authengine/authengine_generator.rb +160 -0
  92. data/lib/rails/generators/authengine/templates/initializer.rb +3 -0
  93. data/lib/rails/generators/authengine/templates/migration.rb +16 -0
  94. data/lib/rails/generators/authengine/templates/pre_populate_database.rb +20 -0
  95. data/lib/rails/generators/authengine/templates/schema.rb +69 -0
  96. data/lib/tasks/bootstrap.rake +29 -0
  97. data/spec/authengine_spec.rb +7 -0
  98. data/spec/dummy/.rspec +1 -0
  99. data/spec/dummy/Gemfile +3 -0
  100. data/spec/dummy/Rakefile +8 -0
  101. data/spec/dummy/app/assets/javascripts/jasmine_examples/Player.js +22 -0
  102. data/spec/dummy/app/assets/javascripts/jasmine_examples/Song.js +7 -0
  103. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  104. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  105. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  106. data/spec/dummy/config.ru +4 -0
  107. data/spec/dummy/config/application.rb +50 -0
  108. data/spec/dummy/config/boot.rb +10 -0
  109. data/spec/dummy/config/database.yml +22 -0
  110. data/spec/dummy/config/environment.rb +5 -0
  111. data/spec/dummy/config/environments/development.rb +26 -0
  112. data/spec/dummy/config/environments/production.rb +49 -0
  113. data/spec/dummy/config/environments/test.rb +35 -0
  114. data/spec/dummy/config/initializers/application.rb +1 -0
  115. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  116. data/spec/dummy/config/initializers/inflections.rb +10 -0
  117. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  118. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  119. data/spec/dummy/config/initializers/session_store.rb +8 -0
  120. data/spec/dummy/config/locales/en.yml +5 -0
  121. data/spec/dummy/config/routes.rb +3 -0
  122. data/spec/dummy/db/development.sqlite3 +0 -0
  123. data/spec/dummy/db/schema.rb +87 -0
  124. data/spec/dummy/lib/constants.rb +5 -0
  125. data/spec/dummy/log/development.log +117 -0
  126. data/spec/dummy/log/production.log +0 -0
  127. data/spec/dummy/log/server.log +0 -0
  128. data/spec/dummy/public/404.html +26 -0
  129. data/spec/dummy/public/422.html +26 -0
  130. data/spec/dummy/public/500.html +26 -0
  131. data/spec/dummy/public/favicon.ico +0 -0
  132. data/spec/dummy/public/javascripts/application.js +2 -0
  133. data/spec/dummy/public/javascripts/controls.js +965 -0
  134. data/spec/dummy/public/javascripts/dragdrop.js +974 -0
  135. data/spec/dummy/public/javascripts/effects.js +1123 -0
  136. data/spec/dummy/public/javascripts/prototype.js +6001 -0
  137. data/spec/dummy/public/javascripts/rails.js +191 -0
  138. data/spec/dummy/public/stylesheets/.gitkeep +0 -0
  139. data/spec/dummy/script/rails +6 -0
  140. data/spec/dummy/spec/javascripts/helpers/.gitkeep +0 -0
  141. data/spec/dummy/spec/javascripts/helpers/SpecHelper.js +9 -0
  142. data/spec/dummy/spec/javascripts/jasmine_examples/PlayerSpec.js +58 -0
  143. data/spec/dummy/spec/javascripts/support/jasmine.yml +76 -0
  144. data/spec/generators/authengine_generator_spec.rb +11 -0
  145. data/spec/integration/navigation_spec.rb +9 -0
  146. data/spec/javascripts/spec.css +3 -0
  147. data/spec/javascripts/spec.js.coffee +2 -0
  148. data/spec/models/action_role_spec.rb +59 -0
  149. data/spec/models/authenticated_system_spec.rb +109 -0
  150. data/spec/models/role_spec.rb +38 -0
  151. data/spec/models/user_factory_spec.rb +7 -0
  152. data/spec/models/user_spec.rb +16 -0
  153. data/spec/requests/sessions_spec.rb +11 -0
  154. data/spec/spec_helper.rb +57 -0
  155. metadata +405 -0
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,22 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ development:
4
+ adapter: sqlite3
5
+ database: db/development.sqlite3
6
+ pool: 5
7
+ timeout: 5000
8
+
9
+ # Warning: The database defined as "test" will be erased and
10
+ # re-generated from your development database when you run "rake".
11
+ # Do not set this db to the same as development or production.
12
+ test:
13
+ adapter: sqlite3
14
+ database: db/test.sqlite3
15
+ pool: 5
16
+ timeout: 5000
17
+
18
+ production:
19
+ adapter: sqlite3
20
+ database: db/production.sqlite3
21
+ pool: 5
22
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,26 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the webserver when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ #config.action_view.debug_rjs = true not required in rails 3.1
15
+ config.action_controller.perform_caching = false
16
+
17
+ # Don't care if the mailer can't send
18
+ config.action_mailer.raise_delivery_errors = false
19
+
20
+ # Print deprecation notices to the Rails logger
21
+ config.active_support.deprecation = :log
22
+
23
+ # Only use best-standards-support built into browsers
24
+ config.action_dispatch.best_standards_support = :builtin
25
+ end
26
+
@@ -0,0 +1,49 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The production environment is meant for finished, "live" apps.
5
+ # Code is not reloaded between requests
6
+ config.cache_classes = true
7
+
8
+ # Full error reports are disabled and caching is turned on
9
+ config.consider_all_requests_local = false
10
+ config.action_controller.perform_caching = true
11
+
12
+ # Specifies the header that your server uses for sending files
13
+ config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
+
15
+ # For nginx:
16
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
+
18
+ # If you have no front-end server that supports something like X-Sendfile,
19
+ # just comment this out and Rails will serve the files
20
+
21
+ # See everything in the log (default is :info)
22
+ # config.log_level = :debug
23
+
24
+ # Use a different logger for distributed setups
25
+ # config.logger = SyslogLogger.new
26
+
27
+ # Use a different cache store in production
28
+ # config.cache_store = :mem_cache_store
29
+
30
+ # Disable Rails's static asset server
31
+ # In production, Apache or nginx will already do this
32
+ config.serve_static_assets = false
33
+
34
+ # Enable serving of images, stylesheets, and javascripts from an asset server
35
+ # config.action_controller.asset_host = "http://assets.example.com"
36
+
37
+ # Disable delivery errors, bad email addresses will be ignored
38
+ # config.action_mailer.raise_delivery_errors = false
39
+
40
+ # Enable threaded mode
41
+ # config.threadsafe!
42
+
43
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44
+ # the I18n.default_locale when a translation can not be found)
45
+ config.i18n.fallbacks = true
46
+
47
+ # Send deprecation notices to registered listeners
48
+ config.active_support.deprecation = :notify
49
+ end
@@ -0,0 +1,35 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Log error messages when you accidentally call methods on nil.
11
+ config.whiny_nils = true
12
+
13
+ # Show full error reports and disable caching
14
+ config.consider_all_requests_local = true
15
+ config.action_controller.perform_caching = false
16
+
17
+ # Raise exceptions instead of rendering exception templates
18
+ config.action_dispatch.show_exceptions = false
19
+
20
+ # Disable request forgery protection in test environment
21
+ config.action_controller.allow_forgery_protection = false
22
+
23
+ # Tell Action Mailer not to deliver emails to the real world.
24
+ # The :test delivery method accumulates sent emails in the
25
+ # ActionMailer::Base.deliveries array.
26
+ config.action_mailer.delivery_method = :test
27
+
28
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
29
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
30
+ # like if you have constraints or database-specific column types
31
+ # config.active_record.schema_format = :sql
32
+
33
+ # Print deprecation notices to the stderr
34
+ config.active_support.deprecation = :stderr
35
+ end
@@ -0,0 +1 @@
1
+ require 'constants'
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = 'e04d04cbabdd21c5c41ab501f21def61076dc77fa9923894e247b3969b685e1a9873fe168dd5cce392372f9c6ba203144b713c16aea21e05166df65a9f72fcee'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ mount Authengine::Engine => "/authengine"
3
+ end
@@ -0,0 +1,87 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20111003074700) do
15
+
16
+ create_table "action_roles", :force => true do |t|
17
+ t.integer "role_id", :limit => 8
18
+ t.integer "action_id", :limit => 8
19
+ t.datetime "created_at"
20
+ t.datetime "updated_at"
21
+ end
22
+
23
+ create_table "actions", :force => true do |t|
24
+ t.string "action_name"
25
+ t.integer "controller_id"
26
+ t.datetime "created_at"
27
+ t.datetime "updated_at"
28
+ end
29
+
30
+ add_index "actions", ["action_name"], :name => "index_actions_on_action_name"
31
+
32
+ create_table "controllers", :force => true do |t|
33
+ t.string "controller_name"
34
+ t.datetime "last_modified"
35
+ t.datetime "created_at"
36
+ t.datetime "updated_at"
37
+ end
38
+
39
+ add_index "controllers", ["controller_name"], :name => "index_controllers_on_controller_name"
40
+
41
+ create_table "roles", :force => true do |t|
42
+ t.string "name"
43
+ t.string "short_name"
44
+ t.datetime "created_at"
45
+ t.datetime "updated_at"
46
+ t.integer "parent_id"
47
+ end
48
+
49
+ create_table "user_roles", :force => true do |t|
50
+ t.integer "role_id", :limit => 8, :null => false
51
+ t.integer "user_id", :limit => 8, :null => false
52
+ t.datetime "created_at"
53
+ t.datetime "updated_at"
54
+ t.string "type"
55
+ end
56
+
57
+ create_table "useractions", :force => true do |t|
58
+ t.integer "user_id"
59
+ t.integer "action_id"
60
+ t.string "type"
61
+ t.text "params"
62
+ t.datetime "created_at"
63
+ t.datetime "updated_at"
64
+ end
65
+
66
+ create_table "users", :force => true do |t|
67
+ t.string "login"
68
+ t.string "email"
69
+ t.string "crypted_password", :limit => 40
70
+ t.string "salt", :limit => 40
71
+ t.string "remember_token"
72
+ t.datetime "remember_token_expires_at"
73
+ t.string "activation_code", :limit => 40
74
+ t.datetime "activated_at"
75
+ t.string "password_reset_code", :limit => 40
76
+ t.boolean "enabled", :default => true
77
+ t.string "firstName"
78
+ t.string "lastName"
79
+ t.string "type"
80
+ t.string "status"
81
+ t.datetime "created_at"
82
+ t.datetime "updated_at"
83
+ end
84
+
85
+ add_index "users", ["login"], :name => "index_users_on_login"
86
+
87
+ end
@@ -0,0 +1,5 @@
1
+ # for the mailer
2
+ SITE_URL = "test.application.com"
3
+ ADMIN_EMAIL = "dbadmin@#{SITE_URL}"
4
+ APPLICATION_NAME = "Test database"
5
+ ORGANIZATION_NAME = "Test org"
@@ -0,0 +1,117 @@
1
+
2
+
3
+ Started GET "/" for 127.0.0.1 at 2012-06-18 18:30:59 -0700
4
+ Connecting to database specified by database.yml
5
+ Processing by Authengine::SessionsController#new as HTML
6
+ Rendered /Users/lesnightingill/Code/authengine/app/views/authengine/sessions/new.html.haml within authengine/layouts/authengine (11.8ms)
7
+ Rendered layouts/application.html.erb (3.6ms)
8
+ Completed 200 OK in 56ms (Views: 55.2ms | ActiveRecord: 0.0ms)
9
+
10
+
11
+ Started GET "/javascripts/jquery.js" for 127.0.0.1 at 2012-06-18 18:31:01 -0700
12
+
13
+ ActionController::RoutingError (No route matches [GET] "/javascripts/jquery.js"):
14
+ actionpack (3.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
15
+ actionpack (3.2.5) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
16
+ railties (3.2.5) lib/rails/rack/logger.rb:26:in `call_app'
17
+ railties (3.2.5) lib/rails/rack/logger.rb:16:in `call'
18
+ actionpack (3.2.5) lib/action_dispatch/middleware/request_id.rb:22:in `call'
19
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
20
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
21
+ activesupport (3.2.5) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
22
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
23
+ actionpack (3.2.5) lib/action_dispatch/middleware/static.rb:62:in `call'
24
+ actionpack (3.2.5) lib/action_dispatch/middleware/static.rb:62:in `call'
25
+ railties (3.2.5) lib/rails/engine.rb:479:in `call'
26
+ railties (3.2.5) lib/rails/application.rb:220:in `call'
27
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
28
+ railties (3.2.5) lib/rails/rack/log_tailer.rb:17:in `call'
29
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
30
+ /Users/lesnightingill/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
31
+ /Users/lesnightingill/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
32
+ /Users/lesnightingill/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
33
+
34
+
35
+ Rendered /Users/lesnightingill/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
36
+
37
+
38
+ Started GET "/javascripts/jquery_ujs.js" for 127.0.0.1 at 2012-06-18 18:31:01 -0700
39
+
40
+ ActionController::RoutingError (No route matches [GET] "/javascripts/jquery_ujs.js"):
41
+ actionpack (3.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
42
+ actionpack (3.2.5) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
43
+ railties (3.2.5) lib/rails/rack/logger.rb:26:in `call_app'
44
+ railties (3.2.5) lib/rails/rack/logger.rb:16:in `call'
45
+ actionpack (3.2.5) lib/action_dispatch/middleware/request_id.rb:22:in `call'
46
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
47
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
48
+ activesupport (3.2.5) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
49
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
50
+ actionpack (3.2.5) lib/action_dispatch/middleware/static.rb:62:in `call'
51
+ actionpack (3.2.5) lib/action_dispatch/middleware/static.rb:62:in `call'
52
+ railties (3.2.5) lib/rails/engine.rb:479:in `call'
53
+ railties (3.2.5) lib/rails/application.rb:220:in `call'
54
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
55
+ railties (3.2.5) lib/rails/rack/log_tailer.rb:17:in `call'
56
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
57
+ /Users/lesnightingill/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
58
+ /Users/lesnightingill/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
59
+ /Users/lesnightingill/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
60
+
61
+
62
+ Rendered /Users/lesnightingill/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.7ms)
63
+
64
+
65
+ Started GET "/jasmine" for 127.0.0.1 at 2012-06-18 18:31:11 -0700
66
+
67
+ ActionController::RoutingError (No route matches [GET] "/jasmine"):
68
+ actionpack (3.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
69
+ actionpack (3.2.5) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
70
+ railties (3.2.5) lib/rails/rack/logger.rb:26:in `call_app'
71
+ railties (3.2.5) lib/rails/rack/logger.rb:16:in `call'
72
+ actionpack (3.2.5) lib/action_dispatch/middleware/request_id.rb:22:in `call'
73
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
74
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
75
+ activesupport (3.2.5) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
76
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
77
+ actionpack (3.2.5) lib/action_dispatch/middleware/static.rb:62:in `call'
78
+ actionpack (3.2.5) lib/action_dispatch/middleware/static.rb:62:in `call'
79
+ railties (3.2.5) lib/rails/engine.rb:479:in `call'
80
+ railties (3.2.5) lib/rails/application.rb:220:in `call'
81
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
82
+ railties (3.2.5) lib/rails/rack/log_tailer.rb:17:in `call'
83
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
84
+ /Users/lesnightingill/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
85
+ /Users/lesnightingill/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
86
+ /Users/lesnightingill/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
87
+
88
+
89
+ Rendered /Users/lesnightingill/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.7ms)
90
+
91
+
92
+ Started GET "/jasmine" for 127.0.0.1 at 2012-06-18 18:33:16 -0700
93
+ Connecting to database specified by database.yml
94
+
95
+ ActionController::RoutingError (No route matches [GET] "/jasmine"):
96
+ actionpack (3.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
97
+ actionpack (3.2.6) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
98
+ railties (3.2.6) lib/rails/rack/logger.rb:26:in `call_app'
99
+ railties (3.2.6) lib/rails/rack/logger.rb:16:in `call'
100
+ actionpack (3.2.6) lib/action_dispatch/middleware/request_id.rb:22:in `call'
101
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
102
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
103
+ activesupport (3.2.6) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
104
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
105
+ actionpack (3.2.6) lib/action_dispatch/middleware/static.rb:62:in `call'
106
+ actionpack (3.2.6) lib/action_dispatch/middleware/static.rb:62:in `call'
107
+ railties (3.2.6) lib/rails/engine.rb:479:in `call'
108
+ railties (3.2.6) lib/rails/application.rb:220:in `call'
109
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
110
+ railties (3.2.6) lib/rails/rack/log_tailer.rb:17:in `call'
111
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
112
+ /Users/lesnightingill/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
113
+ /Users/lesnightingill/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
114
+ /Users/lesnightingill/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
115
+
116
+
117
+ Rendered /Users/lesnightingill/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
File without changes
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>