Mind map
resource :article
Map content
resource :article
model Article
controller articles.controller.rb
- actions (methods)
- new
- create
- user fills "Title" and "Text" fields and presses "Save Article" button
- the saved values are stored as a value of the hash and params method takes this hash
- new object is initialized by params
- new object are saved to the database
- after object is saved the page is redirected to the show the created article
- new object are saved to the database
- new object is initialized by params
- the saved values are stored as a value of the hash and params method takes this hash
- user fills "Title" and "Text" fields and presses "Save Article" button
- show
- contains method which gets article by id from database
- index
- shows all created articles
- actions (methods)
view
- new.html.erb
- form - form_with
- "Title" and "Text" fields
- "Save Article" button
- form - form_with
- index.html.erb
- table which contains three columns: Title, Text and Show link
- show.html.erb
- displays separated article
- new.html.erb
Information
- Description
- Mind Map on resource :article, created by Olga Salnikova on 21/11/2017.
- Created by
- Olga Salnikova · Nov 2017
- Updated
- Nov 21, 2017
- Views
- 0
- Rating