I''ve started to create a very basic rails app. It basically outputs the body of an incoming HTTP PUT request to the console. Unfortunately, it only handles HTTP requests and completely ignores HTTPS requests. Do I have anything special to my Rails 3 routes.rb. It currently looks like this: PutTest::Application.routes.draw do controller :put_test do match ''put'', :to => :update, :via => [:put] end end I don''t see the controller handling incoming HTTPS PUT requests. Everything works fine with HTTP PUT requests. Your help is greatly appreciated! -- 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.
24z wrote in post #976330:> Do I have anything special to my Rails 3 routes.rb. It currently looks > like this: > > PutTest::Application.routes.draw do > > controller :put_test do > match ''put'', :to => :update, :via => [:put] > end > endUnless my understanding of the Rails 3 routing syntax is complete wrong, the above route makes no sense. Shouldn''t it look more like the following? match ''put_test/update'' => ''put_test#update'', :via => :put or the shorthand put ''put_test/update'' -- 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-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.
jgwmaxwell-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2011-Jan-20 20:28 UTC
Re: PUT request via HTTPS not handled properly
Yeah, the original syntax makes no sense unfortunately. If you do want to invoke per controller routing, it needs to be through: resources :controllername do ## do stuff end -- 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.