If I wrap my SSL required routes in a block like this:

scope :protocol => "https://";, :constraints => { :protocol =>
"https://"; } do
  resources :users, :only => [:new, :create, :edit, :update]
end

then all my functional tests that reference those routes are now
spitting out RoutingErrors.  Something like this:

put :update, :id => 123

ActionController::RoutingError: No route matches
{:id=>"123", :controller=>"users", :action=>"update"}

FWIW:  rake routes | grep update

user PUT    /users/:id(.:format)
{:protocol=>"http://";, :action=>"update", :controller=>"users"}

So, what, I'm supposed to specify the protocol in my functional tests
now?

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to