If I wrap my SSL-required routes in a block like this: scope :protocol => "https://", :constraints => { :protocol => "https://" } do match ''/signup'' => ''users#new'', :as => :signup, :via => :get -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
If I wrap my SSL-required routes in a block like this: scope :protocol => "https://", :constraints => { :protocol => "https://" } do match ''/signup'' => ''users#new'', :as => :signup, :via => :get -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.