error in if statement..


The below code is my global layout..code I would like to include a if
statement in it.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html xmlns="" xml:lang="en" lang="en">
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Languages: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'scaffold' %>

<p style="color: green">
<% if flash[:notice].empty? %>
   <%= flash[:message] %>
<% end %>

<%= yield %>


whats wrong with the if statement here..?

Thanks in advance,

You need to use <%= %> to get output from ERb and (as others have said) you don't use puts in templates.

You're Welcome,

Rob Biedenharn