Mapa mental
resource :article
Contenido del mapa
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
Información
- Descripción
- Mapa Mental sobre resource :article, creado por Olga Salnikova el 21/11/2017.
- Creado por
- Olga Salnikova · nov 2017
- Actualizado
- 21 nov 2017
- Visitas
- 0
- Valoración