GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

resource :article

Olga Salnikova Englisch

Inhalt der Mindmap

resource :article

  1. model Article

  2. 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
      • show
        • contains method which gets article by id from database
      • index
        • shows all created articles
  3. view

    • new.html.erb
      • form - form_with
        • "Title" and "Text" fields
        • "Save Article" button
    • index.html.erb
      • table which contains three columns: Title, Text and Show link
    • show.html.erb
      • displays separated article

Informationen

Beschreibung
Mindmap am resource :article, erstellt von Olga Salnikova am 21/11/2017.
Erstellt von
Olga Salnikova · Nov 2017
Aktualisiert
21 Nov 2017
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck