Displaying 1 result from an estimated 1 matches for "shown_month".
Did you mean:
show_month
2010 Nov 05
3
non event_calendar
...onth
=> /\d{1,2}/},
:year => nil,
:month => nil
Action in controller....
def availability_calendar
@month = (params[:month] || Time.zone.now.month).to_i
@year = (params[:year] || Time.zone.now.year).to_i
@shown_month = Date.civil(@year, @month)
@event_strips = Booking.event_strips_for_month(@shown_month)
end
View .....
foo
<%= event_calendar %>
Result....
undefined local variable or method `event_calendar'' for
#<ActionView::Base:0x102e77220>
--
Posted via http://www.ruby-for...