Sha256: 4154e30db1b82e5afb666864528949f72809435ff34dd6244cfe8ed03ca67699
Contents?: true
Size: 641 Bytes
Versions: 11
Compression:
Stored size: 641 Bytes
Contents
<% if @user %> <p>You are logged in as <%= @user.username %> | <a href="/logout">Logout</a></p> <form method="post" action="/add"> Title : <br /> <input name="post_title" type="text" value="<%= @post.title %>"><br /> Body : <br /> <textarea name="post_body"><%= @post.body %></textarea><br /> <input type="hidden" name="post_id" value="<%= @post.id %>"> <input type="submit"> <% else %> <form action="/login" method="post"> Username : <br /> <input type="text" name="username" /><br /> Password : <br /> <input type="text" name="password" /><br /> <input type="submit" name="login" value="Login"> </form> <% end %>
Version data entries
11 entries across 11 versions & 1 rubygems