Skip to content

Commit

Permalink
Merge pull request #305 from mindbreaker/readme-change
Browse files Browse the repository at this point in the history
Readme change (Login)
  • Loading branch information
binarylogic committed Jun 1, 2012
2 parents ef7bb3d + eba5beb commit 958c141
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.rdoc
Expand Up @@ -174,8 +174,17 @@ What if your user sessions controller could look just like your other controller


As you can see, this fits nicely into the RESTful development pattern. What about the view... As you can see, this fits nicely into the RESTful development pattern. What about the view...


<% form_for @user_session do |f| %> <%= form_for @user_session do |f| %>
<%= f.error_messages %> <% if @user_session.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@user_session.errors.count, "error") %> prohibited:</h2>
<ul>
<% @user_session.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<%= f.label :login %><br /> <%= f.label :login %><br />
<%= f.text_field :login %><br /> <%= f.text_field :login %><br />
<br /> <br />
Expand Down

0 comments on commit 958c141

Please sign in to comment.