RailsCasts Pro episodes are now free!

Learn more or hide this

sagit80's Profile

GitHub User: sagit80

Comments by

Avatar

I have a weird issue...
calendar is generating for all articles in my blog e.g. I have 5 articles so each article has own calendar on main page.

<%= calendar_for @articles do |calendar| %>
<%= calendar.head('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday')%>
<% calendar.day(:day_method => :published_at) do |date, articles| %>
<%= date.day %>
<% end %>

<% end %>

I'm using rails 3.1

How to fix it?