I get the following error inside my browser: ActiveRecord::RecordNotFound in ProductsController#show
Couldn't find Product without an ID RAILS_ROOT: /Users/musdev/work/depot Application Trace | Framework Trace | Full Trace /Users/musdev/.gem/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1567:in `find_from_ids' /Users/musdev/.gem/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:616:in `find' /Users/musdev/work/depot/app/controllers/products_controller.rb:17:in `show' Request Parameters: {"id"=>"2"} The code on line 17 in my controller looks like this def show @product = Product.find(params[:id => "show"]) respond_to do |format| format.html {render show.html.erb} format.xml #{ render :xml => @product } end end I'm new to rails and i cannot pinpoint where my issue is occurring Can someone please give me a hand Thank you -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.