Add 'RubyFun/' from commit 'b01c6826131196ba58b5288a3182f2526c89c249'
git-subtree-dir: RubyFun git-subtree-mainline:a04a502787
git-subtree-split:b01c682613
This commit is contained in:
@@ -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" %>

|
||||
<label for="password">Password:</label> <%= password_field "user", "password" %>

|
||||
<%= submit_tag %>
|
||||
<% end %>
|
@@ -0,0 +1,2 @@
|
||||
<h1>User#logout</h1>
|
||||
<p>Find me in app/views/user/logout.html.erb</p>
|
@@ -0,0 +1,3 @@
|
||||
<h1>Account Info</h1>
|
||||
|
||||
<p>Your username is <%= User.find(session[:id]).username %>
|
@@ -0,0 +1,2 @@
|
||||
<h1>User#process_login</h1>
|
||||
<p>Find me in app/views/user/process_login.html.erb</p>
|
Reference in New Issue
Block a user