NullVoxPopuli
NullVoxPopuli

Reputation: 65143

How do a call a method from the ApplicationController before every method call?

I'm trying to do this update_activity_time everytime a user does something in the app.

Ive done this http://blog.tmisoft.com/2009/09/restful-authentication-session-timeout.html

the error I get is undefined local variable or method when I did

before_filter update_activity_time at the top of my controller.

Upvotes: 0

Views: 228

Answers (1)

user229044
user229044

Reputation: 239301

You need before_filter :update_activity_time

Upvotes: 2

Related Questions