[code language=”ruby”] class ApplicationController < ActionController::Base layout :setlayout
def setlayout if current_user && current_user.company? ‘dashboard’ else ‘application’ end end end [/code]
View more posts by Rakesh PD
Save my name, email, and website in this browser for the next time I comment.
Recent Comments