// application.emblem
.wrapper
if isIndexPage
= partial "header"
.main-content
= outlet index
= render index/footer
else
= partial "header"
.main-content
= outlet
= render footer
// App.IndexRoute
renderTemplate: ->
@render
outlet: 'index'
rails g active_admin:install
... (миграции и бандл)
rails generate active_admin:resource MyModel
ActiveAdmin.register Post do
controller do
# This code is evaluated within the controller class
def define_a_method
# Instance method
end
end
end