Displaying 1 result from an estimated 1 matches for "display_calendar".
2006 Apr 23
37
Newbie .. nil object and missing something obvious
...educed the code to what I think is the
minimal case, and it''s still not working. Code presented below..
----------------------------------------------------------------------
in "app/controllers/dashboard_controller.rb"
class DashboardController < ApplicationController
def display_calendar
@dates[0] = Date.Today
@dates << Date.Today + 1
end
end
in "app/views/dashboard/display_calendar.rhtml"
<h1>Display Calendar</h1>
<p>
First day should be <%= Date.today %><br/>
Second day should be <%= Date.today + 1 %>
First da...