Basic Blog setup

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

Usage

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

rails app:template LOCATION="https://railsbytes.com/script/VeKs9j"
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="https://railsbytes.com/script/X8Bsjx"'

run 'rails db:migrate'
Comments

Sign up or Login to leave a comment.