filling in everything needed to login and view the account page, wheeeee.

This commit is contained in:
Dan Buch
2011-08-09 22:03:10 -04:00
parent 7ca80880a8
commit b3d2c45c36
5 changed files with 50 additions and 5 deletions

View File

@@ -1,2 +1,14 @@
<h1>User#login</h1>
<p>Find me in app/views/user/login.html.erb</p>
<% if @flash %>
<% if @flash[:message] %>
<div id="flash-message"><%= @flash[:message] %></div>
<% end %>
<% if @flash[:error] %>
<div id="flash-error"><%= @flash[:error] %></div>
<% end %>
<% end %>
<%= form_tag :action => 'process_login' do %>
<label for="username">Username:</label> <%= text_field "user", "username" %>&#x00A;
<label for="password">Password:</label> <%= password_field "user", "password" %>&#x00A;
<%= submit_tag %>
<% end %>

View File

@@ -1,2 +1,3 @@
<h1>User#my_account</h1>
<p>Find me in app/views/user/my_account.html.erb</p>
<h1>Account Info</h1>
<p>Your username is <%= User.find(session[:id]).username %>