search for: last_request_at

Displaying 6 results from an estimated 6 matches for "last_request_at".

2010 Sep 01
4
deprecation warning in Rails 3 about Base.named_scope
I recently upgraded to Rails 3, and this error has come up ubiquitously: DEPRECATION WARNING: Base.named_scope has been deprecated, please use Base.scope instead. Any ideas on how to get rid of it? Or should I just wait for something? There''s actually no place in my application where the code "Base.named_scope" exists, so I assume the problem is inherent in gems that
2009 Dec 03
2
AuthLogic Question - one time password (persistence_token) - what config is required to use this???
...w", "controller"=>"user_sessions"} User Columns (3.4ms) SHOW FIELDS FROM `users` User Indexes (0.9ms) SHOW KEYS FROM `users` Rendering template within layouts/application Rendering user_sessions/new SQL (0.6ms) SELECT count(*) AS count_all FROM `users` WHERE (last_request_at > ''2009-12-02 20:04:24'') Completed in 182ms (View: 151, DB: 5) | 200 OK [http://localhost/ user_session/new] (c) But then the web-page ends up on the login page, and not automatically on the page I was after - i.e. I was expecting that the one-time password would allow AuthLog...
2010 Jan 21
2
nested forms and attr_accessable
Rails 2.3.5 I am working on a nested form that assigns roles to users through a table called clearances. I have attr_acessable turned off globally in an initializer: ActiveRecord::Base.send(:attr_accessible, nil) I have this set in clearance.rb attr_accessible(:description, :effective_from, :role_id, :superceded_after, :user_id) And this is what params looks like after the
2009 Jan 16
16
Testing arbitrary post action parameters
I am working on our (newly renamed) authentication feature. The current scenario is: Scenario: Non-administrators should not set administrator ability Given I have no users And I add a user named "admin" as an administrator And I add a user named "myuser" as not an administrator When the user named "myuser" authenticates And the user
2005 Aug 07
3
tracking online users
Let''s say I have an application and I want to create an admin program that will show me who is currently online using the application. I don''t know the best way to do this. Assuming I am storing my sessions in the default PStore, I don''t suppose there is any method that lists all the active sessions, is there? The only way I can think of to do this is to setup a
2007 Dec 28
9
lost connection 2.0
I lost my "connection lost" error.. but now I''ve got a "Mysql::Error: MySQL server has gone away" error.. It comes from: /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract_adapter.rb:128:in ''log''. I''m not sure if Rails / BackgroundRb uses it .. but i''ve got the mysql (2.7) gem