aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/action_controller_overview.textile
diff options
context:
space:
mode:
authorJames Miller <james@jk-tech.com>2010-04-06 16:52:39 -0700
committerXavier Noria <fxn@hashref.com>2010-04-09 04:45:02 -0700
commit4f0982db91f4e67b36aec7f1e7445655e7bce8ce (patch)
tree638141f5a28395617296a86ac52b4dca3aca600c /railties/guides/source/action_controller_overview.textile
parent42d3764b3ddc67ac5818deff06b7dfbcdd95e834 (diff)
downloadrails-4f0982db91f4e67b36aec7f1e7445655e7bce8ce.tar.gz
rails-4f0982db91f4e67b36aec7f1e7445655e7bce8ce.tar.bz2
rails-4f0982db91f4e67b36aec7f1e7445655e7bce8ce.zip
More on the new ERB syntax in the guides
Diffstat (limited to 'railties/guides/source/action_controller_overview.textile')
-rw-r--r--railties/guides/source/action_controller_overview.textile10
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/guides/source/action_controller_overview.textile b/railties/guides/source/action_controller_overview.textile
index e193c57935..caa7646b7f 100644
--- a/railties/guides/source/action_controller_overview.textile
+++ b/railties/guides/source/action_controller_overview.textile
@@ -255,12 +255,12 @@ The +destroy+ action redirects to the application's +root_url+, where the messag
<html>
<!-- <head/> -->
<body>
- <% if flash[:notice] -%>
+ <% if flash[:notice] %>
<p class="notice"><%= flash[:notice] %></p>
- <% end -%>
- <% if flash[:error] -%>
+ <% end %>
+ <% if flash[:error] %>
<p class="error"><%= flash[:error] %></p>
- <% end -%>
+ <% end %>
<!-- more content -->
</body>
</html>
@@ -494,7 +494,7 @@ If you generate a form like this:
<ruby>
<%= form_for @user do |f| %>
<%= f.text_field :username %>
- <%= f.text_field :password -%>
+ <%= f.text_field :password %>
<% end %>
</ruby>