Agile Web Development with Rails, Edition 4
Agile Web Development with Rails, Edition 4
22 Caching
21.1 Views
21.2 Form Helpers
bundle exec /home/rubys/git/rails/railties/bin/rails new views --skip-bundle --dev
create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/mailers
create app/models
create app/views/layouts/application.html.erb
create app/mailers/.gitkeep
create app/models/.gitkeep
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create lib/assets
create lib/assets/.gitkeep
create log
create log/.gitkeep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/index.html
create public/robots.txt
create script
create script/rails
create test/fixtures
create test/fixtures/.gitkeep
create test/functional
create test/functional/.gitkeep
create test/integration
create test/integration/.gitkeep
create test/unit
create test/unit/.gitkeep
create test/performance/browsing_test.rb
create test/test_helper.rb
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.gitkeep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.gitkeep
create vendor/plugins
create vendor/plugins/.gitkeep
bundle install
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.0.3)
Using activesupport (3.2.0.beta)
Using builder (3.0.0)
Using activemodel (3.2.0.beta)
Using erubis (2.7.0)
Using journey (1.0.0.20111022124133)
Using rack (1.3.5)
Using rack-cache (1.1)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.0.3)
Using actionpack (3.2.0.beta)
Using mime-types (1.17.2)
Using polyglot (0.3.2)
Using treetop (1.4.10)
Using mail (2.3.0)
Using actionmailer (3.2.0.beta)
Using arel (2.2.1)
Using tzinfo (0.3.30)
Using activerecord (3.2.0.beta)
Using activeresource (3.2.0.beta)
Using bundler (1.0.21)
Using coffee-script-source (1.1.2)
Using execjs (1.2.9)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.6.1)
Using rdoc (3.11)
Using thor (0.14.6)
Using railties (3.2.0.beta)
Using coffee-rails (3.2.0.beta)
Using jquery-rails (1.0.16)
Using rails (3.2.0.beta)
Using sass (3.1.10)
Using sass-rails (3.1.1.alpha.0)
Using sqlite3 (1.3.4)
Using uglifier (1.0.4)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
rails generate model model input:string address:text color:string ketchup:boolean mustard:boolean mayonnaise:boolean start:date alarm:time
invoke active_record
create db/migrate/20111029072639_create_models.rb
create app/models/model.rb
invoke test_unit
create test/unit/model_test.rb
create test/fixtures/models.yml
rails generate controller Form input
create app/controllers/form_controller.rb
route get "form/input"
invoke erb
create app/views/form
create app/views/form/input.html.erb
invoke test_unit
create test/functional/form_controller_test.rb
invoke helper
create app/helpers/form_helper.rb
invoke test_unit
create test/unit/helpers/form_helper_test.rb
invoke assets
invoke coffee
create app/assets/javascripts/form.js.coffee
invoke scss
create app/assets/stylesheets/form.css.scss
rake db:migrate
mv 20111029072639_create_models.rb 20110711000001_create_models.rb
== CreateModels: migrating ===================================================
-- create_table(:models)
-> 0.0042s
== CreateModels: migrated (0.0043s) ==========================================
Restart the server.
edit app/views/form/input.html.erb
<%= form_for(:model) do |form| %>
<p>
<%= form.label :input %> <!-- <label id="helper.label"/> -->
<%= form.text_field :input, :placeholder => 'Enter text here...' %> <!-- <label id="helper.text"/> -->
</p>
<p>
<%= form.label :address, :style => 'float: left' %>
<%= form.text_area :address, :rows => 3, :cols => 40 %> <!-- <label id="helper.textarea"/> -->
</p>
<p>
<%= form.label :color %>:
<%= form.radio_button :color, 'red' %> <!-- <label id="helper.radio"/> -->
<%= form.label :red %>
<%= form.radio_button :color, 'yellow' %>
<%= form.label :yellow %>
<%= form.radio_button :color, 'green' %>
<%= form.label :green %>
</p>
<p>
<%= form.label 'condiment' %>:
<%= form.check_box :ketchup %> <!-- <label id="helper.checkbox"/> -->
<%= form.label :ketchup %>
<%= form.check_box :mustard %>
<%= form.label :mustard %>
<%= form.check_box :mayonnaise %>
<%= form.label :mayonnaise %>
</p>
<p>
<%= form.label :priority %>:
<%= form.select :priority, (1..10) %> <!-- <label id="helper.select"/> -->
</p>
<p>
<%= form.label :start %>:
<%= form.date_select :start %> <!-- <label id="helper.date"/> -->
</p>
<p>
<%= form.label :alarm %>:
<%= form.time_select :alarm %> <!-- <label id="helper.time"/> -->
</p>
<% end %>
get /form/input
NoMethodError in
Form#input
Showing /home/rubys/git/awdwr/edition4/work-192/views/app/views/form/input.html.erb where line #34 raised:
undefined method `empty?' for 1..10:Range
Extracted source (around line #34):
31:
32: <p>
33: <%= form.label :priority %>:
34: <%= form.select :priority, (1..10) %> <!-- <label id="helper.select"/> -->
35: </p>
36:
37: <p>
Rails.root: /home/rubys/git/awdwr/edition4/work-192/views
Application Trace |
Framework Trace |
Full Trace
app/views/form/input.html.erb:34:in `block in _app_views_form_input_html_erb__315062925777515458_28145220'
app/views/form/input.html.erb:1:in `_app_views_form_input_html_erb__315062925777515458_28145220'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/form_options_helper.rb:587:in `to_select_tag'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/form_options_helper.rb:157:in `select'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/form_options_helper.rb:641:in `select'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `capture'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:602:in `fields_for'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:373:in `form_for'
/home/rubys/git/rails/actionpack/lib/action_view/template.rb:143:in `block in render'
/home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:55:in `instrument'
/home/rubys/git/rails/actionpack/lib/action_view/template.rb:141:in `render'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/template_renderer.rb:39:in `block (2 levels) in render_template'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
/home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:53:in `block in instrument'
/home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:53:in `instrument'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/template_renderer.rb:38:in `block in render_template'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/template_renderer.rb:46:in `render_with_layout'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/template_renderer.rb:37:in `render_template'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/template_renderer.rb:12:in `render'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/renderer.rb:36:in `render_template'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/renderer.rb:17:in `render'
/home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:120:in `_render_template'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/streaming.rb:225:in `_render_template'
/home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:114:in `render_to_body'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:30:in `render_to_body'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:43:in `render_to_body'
/home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:99:in `render'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:16:in `render'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
/home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/home/rubys/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
/home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime'
/home/rubys/git/rails/activerecord/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:39:in `render'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
/home/rubys/git/rails/actionpack/lib/abstract_controller/base.rb:167:in `process_action'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/rubys/git/rails/actionpack/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home/rubys/git/rails/activesupport/lib/active_support/callbacks.rb:416:in `_run__2453238348155082378__process_action__1768234790294329090__callbacks'
/home/rubys/git/rails/activesupport/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
/home/rubys/git/rails/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/rubys/git/rails/actionpack/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/rescue.rb:17:in `process_action'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:53:in `block in instrument'
/home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:53:in `instrument'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/params_wrapper.rb:198:in `process_action'
/home/rubys/git/rails/activerecord/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/rubys/git/rails/actionpack/lib/abstract_controller/base.rb:121:in `process'
/home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:45:in `process'
/home/rubys/git/rails/actionpack/lib/action_controller/metal.rb:193:in `dispatch'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/rubys/git/rails/actionpack/lib/action_controller/metal.rb:236:in `block in action'
/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:66:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:66:in `dispatch'
/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:30:in `call'
/home/rubys/git/journey/lib/journey/router.rb:60:in `block in call'
/home/rubys/git/journey/lib/journey/router.rb:48:in `each'
/home/rubys/git/journey/lib/journey/router.rb:48:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:570:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.3.5) lib/rack/etag.rb:23:in `call'
rack (1.3.5) lib/rack/conditionalget.rb:25:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/flash.rb:247:in `call'
rack (1.3.5) lib/rack/session/abstract/id.rb:195:in `context'
rack (1.3.5) lib/rack/session/abstract/id.rb:190:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/cookies.rb:342:in `call'
/home/rubys/git/rails/activerecord/lib/active_record/query_cache.rb:64:in `call'
/home/rubys/git/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/home/rubys/git/rails/activesupport/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
/home/rubys/git/rails/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/reloader.rb:68:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:48:in `call'
/home/rubys/git/rails/railties/lib/rails/rack/logger.rb:26:in `call_app'
/home/rubys/git/rails/railties/lib/rails/rack/logger.rb:16:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.3.5) lib/rack/methodoverride.rb:24:in `call'
rack (1.3.5) lib/rack/runtime.rb:17:in `call'
/home/rubys/git/rails/activesupport/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.3.5) lib/rack/lock.rb:15:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/static.rb:53:in `call'
/home/rubys/git/rails/railties/lib/rails/engine.rb:459:in `call'
rack (1.3.5) lib/rack/content_length.rb:14:in `call'
/home/rubys/git/rails/railties/lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.3.5) lib/rack/handler/webrick.rb:59:in `service'
/home/rubys/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/home/rubys/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/home/rubys/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/form_options_helper.rb:587:in `to_select_tag'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/form_options_helper.rb:157:in `select'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/form_options_helper.rb:641:in `select'
app/views/form/input.html.erb:34:in `block in _app_views_form_input_html_erb__315062925777515458_28145220'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/capture_helper.rb:40:in `capture'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:602:in `fields_for'
/home/rubys/git/rails/actionpack/lib/action_view/helpers/form_helper.rb:373:in `form_for'
app/views/form/input.html.erb:1:in `_app_views_form_input_html_erb__315062925777515458_28145220'
/home/rubys/git/rails/actionpack/lib/action_view/template.rb:143:in `block in render'
/home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:55:in `instrument'
/home/rubys/git/rails/actionpack/lib/action_view/template.rb:141:in `render'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/template_renderer.rb:39:in `block (2 levels) in render_template'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
/home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:53:in `block in instrument'
/home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:53:in `instrument'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/template_renderer.rb:38:in `block in render_template'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/template_renderer.rb:46:in `render_with_layout'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/template_renderer.rb:37:in `render_template'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/template_renderer.rb:12:in `render'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/renderer.rb:36:in `render_template'
/home/rubys/git/rails/actionpack/lib/action_view/renderer/renderer.rb:17:in `render'
/home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:120:in `_render_template'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/streaming.rb:225:in `_render_template'
/home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:114:in `render_to_body'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/renderers.rb:30:in `render_to_body'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/compatibility.rb:43:in `render_to_body'
/home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:99:in `render'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:16:in `render'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
/home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/home/rubys/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
/home/rubys/git/rails/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime'
/home/rubys/git/rails/activerecord/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:39:in `render'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
/home/rubys/git/rails/actionpack/lib/abstract_controller/base.rb:167:in `process_action'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/rubys/git/rails/actionpack/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home/rubys/git/rails/activesupport/lib/active_support/callbacks.rb:416:in `_run__2453238348155082378__process_action__1768234790294329090__callbacks'
/home/rubys/git/rails/activesupport/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
/home/rubys/git/rails/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/rubys/git/rails/actionpack/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/rescue.rb:17:in `process_action'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:53:in `block in instrument'
/home/rubys/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/rubys/git/rails/activesupport/lib/active_support/notifications.rb:53:in `instrument'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/params_wrapper.rb:198:in `process_action'
/home/rubys/git/rails/activerecord/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/rubys/git/rails/actionpack/lib/abstract_controller/base.rb:121:in `process'
/home/rubys/git/rails/actionpack/lib/abstract_controller/rendering.rb:45:in `process'
/home/rubys/git/rails/actionpack/lib/action_controller/metal.rb:193:in `dispatch'
/home/rubys/git/rails/actionpack/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/rubys/git/rails/actionpack/lib/action_controller/metal.rb:236:in `block in action'
/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:66:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:66:in `dispatch'
/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:30:in `call'
/home/rubys/git/journey/lib/journey/router.rb:60:in `block in call'
/home/rubys/git/journey/lib/journey/router.rb:48:in `each'
/home/rubys/git/journey/lib/journey/router.rb:48:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:570:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.3.5) lib/rack/etag.rb:23:in `call'
rack (1.3.5) lib/rack/conditionalget.rb:25:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/flash.rb:247:in `call'
rack (1.3.5) lib/rack/session/abstract/id.rb:195:in `context'
rack (1.3.5) lib/rack/session/abstract/id.rb:190:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/cookies.rb:342:in `call'
/home/rubys/git/rails/activerecord/lib/active_record/query_cache.rb:64:in `call'
/home/rubys/git/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/home/rubys/git/rails/activesupport/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
/home/rubys/git/rails/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/reloader.rb:68:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:48:in `call'
/home/rubys/git/rails/railties/lib/rails/rack/logger.rb:26:in `call_app'
/home/rubys/git/rails/railties/lib/rails/rack/logger.rb:16:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.3.5) lib/rack/methodoverride.rb:24:in `call'
rack (1.3.5) lib/rack/runtime.rb:17:in `call'
/home/rubys/git/rails/activesupport/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.3.5) lib/rack/lock.rb:15:in `call'
/home/rubys/git/rails/actionpack/lib/action_dispatch/middleware/static.rb:53:in `call'
/home/rubys/git/rails/railties/lib/rails/engine.rb:459:in `call'
rack (1.3.5) lib/rack/content_length.rb:14:in `call'
/home/rubys/git/rails/railties/lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.3.5) lib/rack/handler/webrick.rb:59:in `service'
/home/rubys/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/home/rubys/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/home/rubys/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
Request
Parameters:
None
Show session dump
Show env dump
GATEWAY_INTERFACE: "CGI/1.1"
HTTP_ACCEPT: "text/html"
REMOTE_ADDR: "127.0.0.1"
REMOTE_HOST: "localhost"
SERVER_NAME: "localhost"
SERVER_PROTOCOL: "HTTP/1.1"
Response
Headers:
None
22 Caching
21.1 Views