Created
November 11, 2013 19:06
-
-
Save irmiller22/7418546 to your computer and use it in GitHub Desktop.
Database Checklist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
does it change the database? | |
where am I going to store that data? | |
what data needs to be stored? | |
name | |
the songs on the mixtape | |
- write my migration | |
how does that effect my models? | |
does this require a new association? | |
- go into my console and play with the data | |
- once something is working in the console, I like to add it to seeds.rb (or better, write a test) | |
what URL is this feature/project available on? | |
/mixtape/new | |
/mixtape/summer-hits/add_songs | |
/songs/1/add_to_mixtape | |
/mixtapes/1/songs/new | |
build a route for that URL | |
what controller and what method (actions)? | |
class MixtapesController | |
def add_song | |
1. What data do I need? | |
Mixtape.find_by_slug | |
2. does anything need to be done to that data to prepare it? | |
end | |
end | |
what view gets rendered? | |
does it have all the data it needs? | |
does it need any helpers to generate HTML | |
what's my goal (just handcode the HTML) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment