Thanks that's very clear and helpful, I'll try and use the more concise 
method.

It's working for me and I understand why my version wasn't.

Maybe my brain is squished but I've done the hard thing and now this 
next more simple loop is causing me problems in my view. I wish to show 
12 calendars from the current month to 12 months on.

So I know how to display one....<working>

<%= calendar(:year => 2009, :month => 1) do |d|

    if @BookedDays.include?(d)
      [d.mday, {:class => "specialDay"}]
    else
      [d.mday, {:class => "normalDay"}]
    end

end

%>

How do I display twelve of em...I know this is uber easy but I can't get 
it to work.

I firgure something like what follows is useful but I cant get the loop 
within the loop working in the view.

<%
start = Time.now.month
finish = Time.now.month + 12
%>




-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to