Hello I am currently trying to deploy a rails app to a shared host running rails 1.2.3 with apache and cgi (no fcgi access). The hosting service is icdsoft. I made a demo rails app and imported my files where needed appropriately and imported my bootstrapped database. Whenever I call a nested resource path it causes an error where it seems it thinks the resource path is a method and not a url. Here is the error is throws me
NoMethodError in Store#index Showing app/views/products/_products_thumbs.rhtml where line #3 raised: undefined method `section_product_path' for #<#<Class:0xb738cb30>:0xb738cb08> Extracted source (around line #3): 1: <div class="product_entry"> 2: <% if photo = Photo.find_by_id(products_thumbs.photo_id) %> 3: <%= link_to(image_tag(photo.public_filename(:small)), section_product_path(products_thumbs.section, products_thumbs.type, products_thumbs.brand, products_thumbs)) %> 4: <% else %> 5: <%= link_to(image_tag('/images/site-images/photo_coming_soon.gif'), section_product_path(products_thumbs.section, products_thumbs.type, products_thumbs.brand, products_thumbs)) %> 6: <% end %> Trace of template inclusion: /app/views/store/index.rhtml RAILS_ROOT: ../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/views/products/_products_thumbs.rhtml:3:in `_run_rhtml_47app47views47products47_products_thumbs46rhtml' #{RAILS_ROOT}/app/views/store/index.rhtml:12:in `_run_rhtml_47app47views47store47index46rhtml' #{RAILS_ROOT}/app/controllers/store_controller.rb:9:in `index' #{RAILS_ROOT}/app/controllers/store_controller.rb:9:in `index' Request Parameters: None Show session dump Response Headers: {"cookie"=>[], "Content-Type"=>"text/html", "Cache-Control"=>"no-cache"} and here is my nested resource in question map.resources :sections, :member => { :higher => :put, :lower => :put }, :path_prefix => 'catalog' do |sections| sections.resources :types, :path_prefix => 'catalog/:section' sections.resources :brands, :path_prefix => 'catalog/:section' sections.resources :products, :path_prefix => 'catalog/:section/:type/:brand' end Any help would be greatly appreciated. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---