README.md in effective_developer-0.4.6 vs README.md in effective_developer-0.4.7

- old
+ new

@@ -36,10 +36,16 @@ git config --global core.hooksPath ~/effective_developer/githooks ``` # Shell scripts +To use the included command line shell scripts: + +```console +export PATH="$PATH:$HOME/effective_developer/bin" +``` + ## gem_develop A command line shell script to update a `Gemfile` and use any provided gems locally. This makes it very quick to swich to developing a gem locally. @@ -145,10 +151,16 @@ > killpuma ``` # Git hooks +To use the included git hooks for all git repos, run the following: + +``` +git config --global core.hooksPath ~/effective_developer/githooks +``` + ## pre-push Prevents pushing git commits that have the following bad patterns: - Gemfile includes 'path: ' gems @@ -338,11 +350,11 @@ ## effective scaffolds Scaffolding is the fastest way to build a CRUD rails app. -The effective scaffolds generally follow the same pattern as the (rails generate)[http://guides.rubyonrails.org/command_line.html#rails-generate] commands. +The effective scaffolds generally follow the same pattern as the [rails generate](http://guides.rubyonrails.org/command_line.html#rails-generate) commands. To create an entire CRUD resource from the command line: ```ruby rails generate effective:scaffold thing name:string description:text @@ -373,12 +385,14 @@ class Post < ApplicationRecord belongs_to :user belongs_to :category # Attributes - # title :string - # body :text - # published_at :datetime + effective_resources do + title :string + body :text + published_at :datetime + end validates :title, presence: true validates :description, presence: true has_many :comments