diff options
author | James Miller <james@jk-tech.com> | 2010-04-06 16:52:39 -0700 |
---|---|---|
committer | James Miller <james@jk-tech.com> | 2010-04-06 16:52:39 -0700 |
commit | b52b36e680713b04a541c4bf989a692975099e6c (patch) | |
tree | c3f9a1d3b07cca41d168945fc127719673e30895 /railties/guides/source/action_controller_overview.textile | |
parent | beca1af820fab74a6ea26cb906d6c5e0116b7f8c (diff) | |
download | rails-b52b36e680713b04a541c4bf989a692975099e6c.tar.gz rails-b52b36e680713b04a541c4bf989a692975099e6c.tar.bz2 rails-b52b36e680713b04a541c4bf989a692975099e6c.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.textile | 10 |
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> |