forked from codecurious-bln/basic-curriculum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwordpress-step-2.html
13 lines (11 loc) · 1.31 KB
/
wordpress-step-2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
h2><span style="color: #b33605;">Step 2: Create Attendee scaffold</span></h2>
We are using Rails’ scaffolds to generate a starting point that allows us to list, add, remove, edit, and view things; in our case attendees.
<span style="color: #b33605;"><strong>Coach: What is a scaffold (1. the command, 2. the model name and related db table; pluralization/naming conventions, 3. attributes and types)?</strong></span>
<span style="color: #b33605;"> <strong> What are migrations and when do you need to do them, why?</strong></span>
<pre class="brush:shell">rails generate scaffold attendee name:string twitter_handle:string bio:text address:text picture:string
rake db:migrate
rails s</pre>
Open <span style="color: #b33605;"><a title="localhost" href="http://localhost:3000/attendees" target="_blank"><span style="color: #b33605;"><strong>http://localhost:3000/attendees</strong></span></a></span> in browser.
<strong>CTRL-C</strong> exits the server when you have clicked around for a little.
<h2 style="text-align: center;"><strong><a href="./rails-girls-app-tutorial-step-1/"> < Step 1</a><span style="color: #d33605;">
</span></strong><a style="text-align: right;" href="./rails-girls-app-tutorial-step-3/"><strong><span style="color: #d33605;">Step 3 ></span></strong></a></h2>