Modify

Set config/application.rb.
Add Authentication function

Install devise. Set routes.rb.
New controller admins and model admin.
Set assets

Set assets:precompile RAILS_ENV=production.
Add Post

New controller Posts and model Post.
Fix environments production

Set config.assets.compile = true.