I was wondering if there was a better way to do that… figured there was, just didn't give any effort to finding out how


On Wednesday, May 22, 2013 at 2:42 PM, Jason Draper wrote:

> In app/controllers/instructor/sections_controller.rb:
> > @@ -1,14 +1,31 @@ > class Instructor::SectionsController < ApplicationController > > - skip_before_filter :authenticate_user! > + skip_before_filter :authenticate_admin! > + before_filter :authenticate_teacher!  
>  
> You should set up seperate top level controllers to inherit from to prevent the skipping. That is going to get very confusing soon.
> def AdminBaseController < ApplicationController before_filter :authenticate_admin end def Admin::OtherController < AdminBaseController end def InstructorBaseController < ApplicationController before_filter :authenticate_teacher! end def Instructor::SectionsController < InstructorsBaseController end  
>  
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/jmabry111/rubysis/pull/22/files#r4345781).