Basic Blog setup

This script just creates Post and Comment models using scaffold + Devise
Icons/chart bar
Used 17 times
Created by
M Masha


Run this command in your Rails app directory in the terminal:

rails app:template LOCATION=""
Template Source

Review the code before running this template on your machine.

run 'rails generate scaffold post title:string body:text'
run 'rails generate scaffold comment post_id:integer body:text'

# Devise
run 'rails app:template LOCATION=""'

run 'rails db:migrate'

Sign up or Login to leave a comment.