On 19 December 2013 16:41,  <[email protected]> wrote:
> I am having problems calling a method reset_authentication_token! . if i
> just leave the method as it is with the ! behind it the method is simply
> ignored when the program is run (none of the logger methods inside the
> method is called.) But if i add any other character into it the method gets
> called
>
> Below is the module of the methods.
> This module is included in user.rb
>
> The module auth_token.rb
> http://pastie.org/8563575
>
> The user.rb
>
> http://pastie.org/8563585
>
> This is the session_controller.rb file
>
> http://pastie.org/8563578
>
> The reset_authentication_token! is called from the main create method which
> calls the @user.ensure_authentication_token!

Is it possible that there is another method
reset_authentication_token! in the system somewhere?  If you comment
out your method and run the code do you get a runtime no method error?
 If not then there is another method of this name.

For the future, have a look at the Rails Guide on debugging to see how
to debug your code and see what is happening by stepping into that
method.

Colin

>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/5624c2e9-273b-4a2f-b67d-ab25fa261a1c%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLskQV9%3D-mD-jB%2BNO74pUYb9D5RiyfRUfpp2ba-eb96CpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to