I’ve seen a few people asking me how to specify a specific layout in their controllers. Simple:
1 2 3 4 | #my admin/condos_controller.rb class Admin::CondosController < ApplicationController layout 'layouts/admin' end |
class AllYourCode < Us
I’ve seen a few people asking me how to specify a specific layout in their controllers. Simple:
1 2 3 4 | #my admin/condos_controller.rb class Admin::CondosController < ApplicationController layout 'layouts/admin' end |