Commit a542731

Stephen Peasley <s@stephenpeasley.com>
2014-12-29 17:49:20
First pass of registration page
1 parent ef93b96
Changed files (3)
app
controllers
views
registrations
sessions
app/controllers/registrations_controller.rb
@@ -2,7 +2,6 @@ class RegistrationsController < ApplicationController
   
   def new
     @user = User.new
-    render :nothing => true
   end
   
 end
\ No newline at end of file
app/views/registrations/new.html.erb
@@ -0,0 +1,22 @@
+<div class="row">
+  <form>
+    <div class="small-12 columns">
+      <label>Username
+        <input type="text" placeholder="Username" />
+      </label>
+    </div> <!-- /.small-12 -->
+    <div class="small-12 columns">
+      <label>Email
+        <input type="text" placeholder="Email" />
+      </label>
+    </div> <!-- /.small-12 -->
+    <div class="small-12 columns">
+      <label>Password
+        <input type="password" placeholder="Password" />
+      </label>
+    </div> <!-- /.small-12 -->
+    <div class="small-12 columns">
+      <input type="submit" class="button" value="Register" />
+    </div> <!-- /.small-12 -->
+  </form>
+</div> <!-- /.row -->
\ No newline at end of file
app/views/sessions/new.html.erb
@@ -0,0 +1,1 @@
+<%= link_to "Register", new_registration_path, class: "button secondary" %>
\ No newline at end of file