before_filter exception being ignored

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.

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 ?

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

The problem was that customer resource map in my routes file had no :only option specified. Problem solved.