This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

students can register

  • Loading branch information...
croaky committed Nov 18, 2010
1 parent 02e1065 commit 6093d7f48f8795a2d7e53db41c44e5919799e7f7
@@ -1,4 +1,12 @@
class RegistrationsController < ApplicationController
def new
+ @registration = Registration.new
+ end
+
+ def create
+ @registration = Registration.new(params[:registration])
+ @registration.save
+ flash[:success] = "Thanks for registering! We can't wait to see you!"
+ redirect_to root_path
end
end
@@ -0,0 +1,4 @@
+class Registration < ActiveRecord::Base
+ validates_presence_of :twitter, :name, :school, :why, :role
+ validates_uniqueness_of :twitter
+end
@@ -7,216 +7,13 @@
</head>
<body class="<%= body_class %>">
<div id="container">
- <header>
- <div id="benefactors" class="clearfix">
- <div id="logo-left">
- <%= link_to "http://greenhornconnect.com" do %>
- <img src="/images/greenhorn-logo.png" alt="greenhorn-logo" width="139" height="72" />
- <% end %>
- </div>
- <div id="banner">
- <img src="/images/greenhorn_thoughtbot_banner.png" alt="greenhorn_thoughtbot_banner" width="326" height="72" />
- </div>
- <div id="logo-right">
- <%= link_to "http://thoughtbot.com" do %>
- <img src="/images/thoughtbot-logo.png" alt="thoughtbot-logo" width="77" height="72" />
- <% end %>
- </div>
- </div>
- <hr class="top" />
- <div id="dddd-logo">
- <img src="/images/DDDD-logo.png" alt="DDDD-logo" width="778" height="284" />
- </div>
- </header>
+ <%= render :partial => 'shared/header' %>
+ <%= render :partial => 'shared/flashes' %>
- <div id="free-event">
- <img src="/images/free-event.png" alt="free-event" width="549" height="49" />
- </div>
+ <%= yield %>
- <!-- Start of main content -->
- <div id="main">
- <div id="descriptions" class="clearfix">
- <div id="developers">
- <h2>What</h2>
- <p>
- On a cold Saturday in February, 100 high school and college students will get together to talk about making
- web and mobile applications. Fun, in-demand technologies will be introduced by some of the premier members
- of the Boston, startup, and web communities.
- </p>
- </div>
- <div id="divider">
- <img src="/images/description-divider.png" alt="description-divider" width="48" height="174" />
- </div>
- <div id="designers">
- <h2>Why</h2>
- <p>
- There is a shortage of talent in Boston as local startups fail to find great designers and developers.
- Why not get paid well to participate in a creative and intrinsincly satisfying activity?
- </p>
- </div>
- </div>
- <hr class="bottom"/>
- <div id="event-location">
- <div id="compass">
- <img src="/images/compass.png" alt="compass" width="211" height="181" />
- </div>
- <div id="location">
- <p>One Memorial Drive, Cambridge, MA</p>
- <p class="venue">Microsoft NERD Center</p>
- <p class="date">11am - 3pm, february 5th, 2011</p>
- </div>
- </div>
- <hr class="top"/>
- <div class="register-button top clearfix">
- <div class="hand left"></div>
- <h2><a href="#register">register now</a></h2>
- <div class="hand right"></div>
- </div>
- </div>
- <div id="main-bottom">
- </div>
- <div id="schedule">
- <h1>Schedule</h1>
- <ol id="schedule">
- <li>
- <p class="event-time">11:00am</p><p class="event-title"><a href="#">Brunch</a></p>
- </li>
- <li>
- <p class="event-time">11:30am</p><p class="event-title"><a href="#">Why Work at a Startup?</a></p>
- <p class="event-speaker">Angus Davis</p>
- </li>
- <li>
- <p class="event-time">11:40am</p><p class="event-title"><a href="#">A Day in the Life of a Designer</a></p>
- <p class="event-speaker">Dan Cederholm</p>
- </li>
- <li>
- <p class="event-time">11:50am</p><p class="event-title"><a href="#">A Day in the Life of a Developer</a></p>
- <p class="event-speaker">Dharmesh Shah</p>
- </li>
- <li>
- <p class="event-time">12:00pm</p><p class="event-title"><a href="#">Typography</a></p>
- <p class="event-speaker">TBA</p>
- </li>
- <li>
- <p class="event-time">12:10pm</p><p class="event-title"><a href="#">Grids</a></p>
- <p class="event-speaker">TBA</p>
- </li>
- <li>
- <p class="event-time">12:20pm</p><p class="event-title"><a href="#">Color</a></p>
- <p class="event-speaker">TBA</p>
- </li>
- <li>
- <p class="event-time">12:30pm</p><p class="event-title"><a href="#">Text Editor</a></p>
- <p class="event-speaker">TBA</p>
- </li>
- <li>
- <p class="event-time">12:40pm</p><p class="event-title"><a href="#">Unix Shell</a></p>
- <p class="event-speaker">Mike Burns</p>
- </li>
- <li>
- <p class="event-time">12:50pm</p><p class="event-title"><a href="#">Git</a></p>
- <p class="event-speaker">Tom Preston-Warner</p>
- </li>
- <li>
- <p class="event-time">1:00pm</p><p class="event-title"><a href="#">Break</a></p>
- </li>
- <li>
- <p class="event-time">1:10pm</p><p class="event-title"><a href="#">Chris Bowen</a></p>
- <p class="event-speaker">TBA</p>
- </li>
- <li>
- <p class="event-time">1:20pm</p><p class="event-title"><a href="#">HTML5 & CSS3</a></p>
- <p class="event-speaker">TBA</p>
- </li>
- <li>
- <p class="event-time">1:30pm</p><p class="event-title"><a href="#">jQuery</a></p>
- <p class="event-speaker">John Resig</p>
- </li>
- <li>
- <p class="event-time">1:40pm</p><p class="event-title"><a href="#">jQuery Mobile</a></p>
- <p class="event-speaker">John Resig</p>
- </li>
- <li>
- <p class="event-time">1:50pm</p><p class="event-title"><a href="#">Ruby on Rails</a></p>
- <p class="event-speaker">TBA</p>
- </li>
- <li>
- <p class="event-time">2:00pm</p><p class="event-title"><a href="#">PostgreSQL</a></p>
- <p class="event-speaker">Jim Psota</p>
- </li>
- <li>
- <p class="event-time">2:10pm</p><p class="event-title"><a href="#">NoSQL</a></p>
- <p class="event-speaker">Daniel Weinreb</p>
- </li>
- <li>
- <p class="event-time">2:20pm</p><p class="event-title"><a href="#">Ship It</a></p>
- <p class="event-speaker">Ben Scofield</p>
- </li>
- <li>
- <p class="event-time">2:30pm</p><p class="event-title"><a href="#">Startup Tables</a></p>
- </li>
- </ol>
- </div>
- <div id="main-continue-top">
- </div>
- <div id="main-continue">
- <div class="register-button bottom clearfix">
- <div class="hand left"></div>
- <h2><a href="#register">register now</a></h2>
- <div class="hand right"></div>
- </div>
- <!--
- <hr class="bottom"/>
- <div id="after-party" class="clearfix">
- <div class="wreath left">
- <img src="/images/angel-investors.png" alt="angel-investors" width="215" height="200" />
- </div>
- <div id="after-party-description">
- <h1>after party</h1>
- <h4>drinks on the rich dudes</h4>
- <h2>Flat Top Jonny's</h2>
- <h3>One Kendall Square</h3>
- </div>
- <div class="wreath right">
- <img src="/images/venture-capitalists.png" alt="venture-capitalists" width="215" height="200" />
- </div>
- </div>
- -->
- <hr class="top"/>
- <div id="registration">
- <div id="registration-banner">
- <img src="/images/registration-banner.png" alt="registration-banner" width="422" height="145" />
- <p id="subtitle">Tell us more about yourself</p>
- </div>
- <form id="event-registration" name="Event Registration" action="submit" method="post">
- <ol class="left">
- <li>
- <p><label for="twitter-username">Twitter Name</label><input type="text" name="twitter-username" id="twitter-username"/></p>
- </li>
- <li>
- <p><label for="first">Full Name</label><input type="text" name="full-name" id="full-name" /></p>
- </li>
- <li>
- <p><label for="first">School</label><input type="text" name="university-name" id="university-name" /></p>
- </li>
- </ol>
- <ol class="right">
- <li id="description">
- <p><label for="textarea">In 140 characters or less, describe why you're attending:</label></p><textarea name="textarea" id="textarea" rows="5" cols="30"></textarea>
- </li>
- <li id="radio">
- <label>Weapon of choice:</label>
- <p class="radio developer"><input type="radio" name="radio" id="radio_one" value="Developers">Developer</p>
- <p class="radio designer"><input type="radio" name="radio" id="radio_two" value="Designer">Designer</p>
- </li>
- <li id="submit-button"><p><label for="textarea"></label></p><input type="submit" name="submit" value="submit" id="submit-btn"/></li>
- </ol>
- </form>
- </div>
- </div>
- <footer>
+ <footer></footer>
- </footer>
<%= render :partial => 'shared/javascript' %>
</div>
</body>
Oops, something went wrong.

0 comments on commit 6093d7f

Please sign in to comment.