create an array with hashes.
maroon5 = { "vocal" => "Adam"
"guitar" => "someoneelse" }
print "vocal" will do:
Adam
--
in .rb file: define variables
in .erb file: show websites
---
view: HTML/CSS, JS, ...
controller: Ruby
---
CRUD model
-----
maroon5 = { "vocal" => "Adam"
"guitar" => "someoneelse" }
print "vocal" will do:
Adam
--
in .rb file: define variables
in .erb file: show websites
---
view: HTML/CSS, JS, ...
controller: Ruby
---
CRUD model
- Create
- Read
- Update
- Delete/Destroy
-----
- rails g controller home index
- rails g model post
- amend db/migrate/whateverfile_create_posts.rb
- rake db:migrate