try this please <hr> > <% flash.each do |key, msg| %> > <%= content_tag :div, msg, :class => "flash", :id => key %>
<% content_tag :script, :type => "text/javascript" do %> > $('<%= key %>').style.display = > 'none'; <=== this makes no sense the > selector never sees anything with <% %> since this never > new Effect.Appear('<%= key %>', {duration: > 3}); gets to the browser also the content > tag generates this flash_error, flash_notice, etc > <% end %> > > <% content_tag :script, :type => "text/javascript" do %> > setTimeout("new Effect.Fade('<%= key %>');", 10000); <=== > again try to select something with <% %> > <% end %> > <% end %> > </hr> > <%= yield :layout %> > > > but the only thing i see is this: > > 'Input > > > literally, the string "'Input" is being displayed between the hr tags... > im confused > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.