I am, as stated in the subject, having an issue with a before_filter exception being ignored by the application. My Customer Controller: http://pastie.org/1005487 My Application Controller: http://pastie.org/1005490 I have a link to a forgotten_password action that, when clicked, gets redirected back to the customers/login page with an authorization error. Obviously, this is not what I want. Can anyone help me out with this? I am, obviously, missing something. -- 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.
Pale Horse wrote:> I am, as stated in the subject, having an issue with a before_filter > exception being ignored by the application. > > My Customer Controller: > > http://pastie.org/1005487 > > My Application Controller: > > http://pastie.org/1005490 > > > I have a link to a forgotten_password action that, when clicked, gets > redirected back to the customers/login page with an authorization error. > Obviously, this is not what I want. > > Can anyone help me out with this? I am, obviously, missing something.Hello, Could we have a look on your.rhtml, to make sur that the action that is triggered by the link is the good one ? -- 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.
Mamadou Touré wrote:> Hello, > > Could we have a look on your .rhtml, to make sure that the action that is > triggered by the link is the good one ?customers/forgotten_password.html.erb: http://pastie.org/1006510 customer_sessions/new.html.erb: http://pastie.org/1006513 -- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
The problem was that customer resource map in my routes file had no :only option specified. Problem solved. -- 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.