#13 new
Nicholas Rutherford

singleton path weirdness

Reported by Nicholas Rutherford | November 22nd, 2009 @ 03:06 PM


This now seems to resolve to a path, but gives a different error:

Missing template site/show.erb in view path app/views (ActionView::MissingTemplate) (eval):2:in visit' ./features/step_definitions/webrat_steps.rb:16:in/^(?:|I )go to (.+)$/' features/authentication/admin_login.feature:22:in And I go to the site page'

             new_site GET    /site/install(.:format)              {:action=>"new", :controller=>"site"}
            edit_site GET    /site/configure(.:format)            {:action=>"edit", :controller=>"site"}
                 site GET    /site(.:format)                      {:action=>"show", :controller=>"site"}
                      PUT    /site(.:format)                      {:action=>"update", :controller=>"site"}
                      POST   /site(.:format)                      {:action=>"create", :controller=>"site"}

  map.resource  :site, 
            :controller => 'site', :only => [:new, :create, :update, :show, :edit],
            :path_names => {:new => 'install', :edit => 'configure'}

And the files are certainly there and working, it's for some reason not recognising .html.erb from .erb within pickle_path or pickle_path isn't providing visit with the right kind of url, or something.

First thing to do: reproduce this in a fresh rails app without the other clutter present where the issue was observed. I work around this (and the previous issue) by having this as my second path in the case statement:

when /^the site page$/


No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Assign tickets to <b>Ian White</b>, so I get notified

People watching this ticket