search for: acts_as_ratelimit

Displaying 1 result from an estimated 1 matches for "acts_as_ratelimit".

2009 Aug 21
2
Requesting a remote ip in plugin
Im creating plugin for limiting the ip, i have included the plugin name in my controller Controller: class AdminController < ApplicationController acts_as_ratelimit def login session[:user_id] = nil if request.post? user = User.authenticate(params[:name], params[:password]) if user session[:user_id] = user.id redirect_to(:controller=>"products", :action => "new" ) else flash.now[:notice] = "Invalid user/passwo...