[RAILS] 2020/10/5 Morning output

Create a Rails posting app Save tweets

--From the continuation --About how to save data from the form --Methods used to define strong parameters --Require method is a method that can be used by params that has information on the parameters sent. --By using the require method, if the parameter is unintended, it can be returned as an error, and it is possible to identify the cause and show the error to the user. --Use permit method to limit only the data you want to store in the column --The permit method can use params, you can specify the key you want to get, and only get the specified set of key and value --Private methods are methods that cannot be called from outside the class. --Advantage 2 store --Isolate methods that would be a problem if called from outside one class to prevent errors ―― 2 The code can be simplified

to be continued

Recommended Posts

2020/10/4 Morning output
2020/10/5 Morning output
2020/10/3 Morning output
2020/10/4 noon output
Learning output ~ 11/3 ~
Learning output
2020/10/3 Noon output
[Java] output, variables
Ruby input / output
[ruby] drill output
[ruby] drill output
[ruby] drill output
Ruby standard output
[ruby] drill output
[ruby] drill output
[ruby] drill output
[Output] About each
[ruby] drill output
5th class: Output