ok, i've placed ur snippet in:
<hr>
<% flash.each do |name, msg| %>
<%= content_tag :div, msg, :id => "flash_#{name}" %>
<% end -%>
<hr>
<%= yield :layout %>
> same behaviour....
On Mon, Oct 25, 2010 at 12:19 PM, radhames brito <[email protected]> wrote:
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.