Commit a323f0db authored by April Guian's avatar April Guian

edited

parent 2a07f9fc
class NewController < ApplicationController
def index
render "new/index.html.erb"
end
end
\ No newline at end of file
...@@ -36,35 +36,6 @@ ...@@ -36,35 +36,6 @@
</table> </table>
<hr> <hr>
<a href="/new">Add New Housemate</a>
<h3>Add New Housemate</h3> <div></div>
<%= form_tag("/housemates/create", method: "post") do %> <a href="/">Back Home</a>
<label>First Name:</label>
<input type="text" name="first_name"/>
<div></div>
<label>Last Name:</label>
<input type="text" name="last_name"/>
<div></div>
<label>Screen Name:</label>
<input type="text" name="screen_name"/>
<div></div>
<label>Address:</label>
<input type="text" name="address"/>
<div></div>
<label>Talent:</label>
<input type="text" name="talent"/>
<div></div>
<label>Rate:</label>
<select name="rate" class="u-full-width">
<option value="pabebe">pabebe</option>
<option value="qt">Qt</option>
<option value="meh">Meh</option>
</select>
<label padding-top="10"></label>
<div></div>
<input type="submit" value="Create Housemate"/>
<% end %>
<hr>
<a href="/">Back Home</a>
\ No newline at end of file
<h1>Add New Housemate</h1>
<%= form_tag("/housemates/create", method: "post") do %>
<label>First Name:</label>
<input type="text" name="first_name"/>
<div></div>
<label>Last Name:</label>
<input type="text" name="last_name"/>
<div></div>
<label>Screen Name:</label>
<input type="text" name="screen_name"/>
<div></div>
<label>Address:</label>
<input type="text" name="address"/>
<div></div>
<label>Talent:</label>
<input type="text" name="talent"/>
<div></div>
<label>Rate:</label>
<select name="rate" class="u-full-width">
<option value="pabebe">Pabebe</option>
<option value="qt">Qt</option>
<option value="meh">Meh</option>
</select>
<label padding-top="10"></label>
<div></div>
<input type="submit" value="Create Housemate"/>
<% end %>
<hr>
<a href="/housemates">Go to Housemate List</a>
<div></div>
<a href="/">Back to Home</a>
\ No newline at end of file
Rails.application.routes.draw do Rails.application.routes.draw do
root to: "pages#index" root to: "pages#index"
get "/housemates", to: "housemates#index" get "/housemates", to: "housemates#index"
get "/new", to: "new#index"
post "/housemates/create", to: "housemates#create" post "/housemates/create", to: "housemates#create"
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment