topfunky/calendar_helper — Issue #10: NoMethodError in action (Rails 3.1.3)
Author: ExReanimator
Created: 2012-01-11 15:37:57+00:00
State: open

Hi!
I tried to render calendar in my view:

<%= calendar(:year => 2012, :month => 1, :first_day_of_week => 1) do |d|
render_calendar_cell(d)
end
%>

Got an error in first line:

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.size