app/helpers/application_helper.rb
# Display the notice in class Notice in paragraph if there are one
Display the notice in class Notice in paragraph if there are one
Display the notice in class Notice in paragraph if there are one
def flash_notice
    return '' unless flash[:notice]
    content_tag 'p', :class => 'notice' do 
      flash[:notice]
    end
  end
def flash_notice return '' unless flash [ :notice ] content_tag 'p' , :class => 'notice' do flash [ :notice ] end end
Display the notice in class Notice in paragraph if there are one
Display the notice in class Notice in paragraph if there are one