I used ssl_requirement plugins, for secured http requests. I have implemented the secured http but the problem is that when I click for non_ssl action it also requests with HTTPS. suppose I used 2 actions to be secured I used this -->> ssl_required :x, y I don''t know where the prob is? -- 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.
On Jul 12, 11:13 am, HUNT HUNT <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I used ssl_requirement plugins, for secured http requests. > I have implemented the secured http but the problem is > that when I click for non_ssl action it also requests with HTTPS. > > suppose I used 2 actions to be secured > I used this -->> ssl_required :x, y > > I don''t know where the prob is?By default a link will always be generated with the same protocol (http or https) that was used to access the page, if you want otherwise you can pass a :protocol option to link_to (and to the other similar helpers). ssl_requirement doesn''t handle anything like this for you. Fred> -- > Posted viahttp://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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> I don''t know where the prob is?In routes.rb you must specify :requirement => { :protocol => ''http(s)''} for every route. Yes ssl in rails is painful. -- 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.