small medium large xlarge

Generic-user-small
26 Dec 2008, 22:25
Jason Hoover (1 post)

Hello all, I’ve run into a road block once I got to the Ajax portion of this book. I can’t seem to get my ajax to run and the development log seems to be indicating that it is still looking for the add_to_cart.rhtml file (which I deleted per the instructions). I’m not sure why it isn’t taking the add_to_cart.rjs and running but here is what my development log shows: ActionView::TemplateError (No such file or directory - E:/INSTAN~1.7-W/INSTAN~1/rails_apps/depot/config/../app/views/store/add_to_cart.rhtml) in app/views/store/add_to_cart.rhtml:

E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:440:in `mtime'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:440:in `compile_template?'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:317:in `compile_and_render_template'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:301:in `render_template'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:260:in `render_file'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:806:in `render_file'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:711:in `render_with_no_layout'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/layout.rb:247:in `render_without_benchmark'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in `render'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in `render'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1096:in `perform_action_without_filters'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in `call_filter'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in `perform_action'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `send'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `process_without_filters'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in `process_without_session_management_support'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in `process'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in `process'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in `dispatch'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:78:in `process'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:76:in `synchronize'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:76:in `process'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:618:in `process_client'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:617:in `each'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:617:in `process_client'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in `run'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in `initialize'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in `new'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in `run'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in `initialize'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in `new'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in `run'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configurator.rb:271:in `run'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configurator.rb:270:in `each'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configurator.rb:270:in `run'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel_rails:127:in `run'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/command.rb:211:in `run'
E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel_rails:243
E:/INSTAN~1.7-W/INSTAN~1/ruby/bin/mongrel_rails:16:in `load'
E:/INSTAN~1.7-W/INSTAN~1/ruby/bin/mongrel_rails:16

Rendering E:/INSTAN~1.7-W/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error) Product Columns (0.000000) SHOW FIELDS FROM products

I’ve double-checked that my javascript is entered correctly, and that all my code matches what is in the book. Any ideas of what I may have missed? I’m guessing its something simple since I can’t find any posts related to this.

Thanks, Jason

You must be logged in to comment