>Active Record Inheritance (ARI) http://d1.scribdassets.com/ScribdViewer.swf?document_id=44922200&access_key=key-2ix0qbm381eltbaykpu7&page=1&viewMode=list
Author: sandipransing
Accessing Helper modules in rails
>Methods defined in Helper modules can directly accessed in rails views because this is what they are pretended for but we often come across with situations where we wanted to use some helper methods in controllers, views, models and mailers and obvious we don't want to repeat same lines of code everywhere which also rail … Continue reading Accessing Helper modules in rails
authlogic custom conditions for authentication
>To Add custom conditions to authlogic finders first of all we need to override authlogic find_by_login method.class UserSession < Authlogic::Session::Base after_validation :check_if_verified find_by_login_method :find_by_login_and_deleted_methodendThen we need to define overridden method inside User modelclass User < ActiveRecord::Base acts_as_authentic def self.find_by_login_and_deleted_method(login) find_by_email_and_deleted(login, false) endendgot easy..wooooooo 🙂
