Only showing 5 events on calendar per month #11

Open
ghost opened this Issue Jul 7, 2012 · 1 comment

Comments

Projects
None yet
1 participant
@ghost

ghost commented Jul 7, 2012

<div id="calendar">
  <h3 id="month">
  <%= link_to "<", :month => (@date.beginning_of_month-1).strftime("%Y-%m") %>
  <%=h @date.strftime("%B %Y") %>
  < %= link_to ">", :month => (@date.end_of_month+1).strftime("%Y-%m") %>
 </h3>


           <%= calendar_for @occasions, :year => @date.year, :month => @date.month do |calendar| %>
             <%= calendar.head('sun','mon', 'tue', 'wed', 'thu', 'fri', 'sat') %>
              <%= calendar.day(:day_method => :dateg) do |date, occasions| %>
               <%= date.day %>
                    <% occasions.each do |occasion| %>
                    <%= h(occasion.pname) %><%= '\'s' %>&nbsp;<%= h(occasion.name) %>
    <% end %>

    <% end %>
    <% end %>
    </div>



           <%= calendar_for @occasions, :year => @date.year, :month => @date.month do |calendar| %>
             <%= calendar.head('sun','mon', 'tue', 'wed', 'thu', 'fri', 'sat') %>
              <%= calendar.day(:day_method => :dateg) do |date, occasions| %>
               <%= date.day %>
                    <% occasions.each do |occasion| %>
                    <%= h(occasion.pname) %><%= '\'s' %>&nbsp;<%= h(occasion.name) %>

<% end %>

<% end %>

<% end %>

What does your controller look like by change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment