[RAILS] 2020/10/2 Tech Camp Day 12 Output

Let's make a posting application according to the textbook with Rails

Library introduction

--A library is a collection of complex programs. ――RubyGems is a general term for Ruby libraries, not gum. --Gem is each library in RubyGems. It's not mouthwash. --Gemfile is a file that describes and manages the Gem name and version of the Gem used in the application. --Gemfile.lock is a file that records bundle-installed Gem bundle bundler

The basic flow of creating a new page is routing → controller → model → view.

Display of posted content

--CRUD is an acronym for basic processing related to application data handling. ――The seven actions are a general term for the basic actions in Rails: index, show, new, create, edit, update, destroy. --The resources method is a method that automatically generates routes to 7 actions.

Save your post

--Strong parameters are those that receive only parameters with the specified key. --Private methods are methods that cannot be called from outside the class. --Validation is to impose certain restrictions when registering data. --Increase security

Recommended Posts

2020/10/1 Tech Camp Day 11 Output
2020/10/3 Tech Camp Day 13 Output
2020/10/2 Tech Camp Day 12 Output
2020/10/4 Tech Camp Day 14 Output
TECH CAMP After 10 weeks
[Impression] Take a Tech Camp
TECH CAMP learning personal application creation ③
TECH CAMP learning personal app ④ git ignore