Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Only showing 5 events on calendar per month #11

Open
ghost opened this Issue · 1 comment

1 participant

@ghost
<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 %>

@marclipovsky

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
Something went wrong with that request. Please try again.