For starters, it seems the style info should be inside the <div opening tag,
like this:
<div id="cart" <% if @cart.items.empty?
%>style="display: none"<% end %>>
On 7/25/06, James Giannini <jjgiannini@gmail.com>
wrote:>
> <div id="cart">
> <% if @cart.items.empty? %>
> style="display: none"
> <% end %>
> <%= hidden_div_if(@cart.items.empty?, :id =>
> "cart") %>
>
> i dont know how to fix it, iv looked all over the book ruby on rails and
> cant ever find whats wrong with it...
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
"Impossible is nothing."
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060726/cc185f35/attachment.html