Add 'RubyFun/' from commit 'b01c6826131196ba58b5288a3182f2526c89c249'

git-subtree-dir: RubyFun
git-subtree-mainline: a04a502787
git-subtree-split: b01c682613
This commit is contained in:
Dan Buch
2013-01-09 23:50:14 -05:00
299 changed files with 25309 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<% 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

@@ -0,0 +1,2 @@
<h1>User#logout</h1>
<p>Find me in app/views/user/logout.html.erb</p>

View File

@@ -0,0 +1,3 @@
<h1>Account Info</h1>
<p>Your username is <%= User.find(session[:id]).username %>

View File

@@ -0,0 +1,2 @@
<h1>User#process_login</h1>
<p>Find me in app/views/user/process_login.html.erb</p>