issue #1. I'm a newb.
So, I'm trying to set up a calendar of lessons using the WeekViewHelper snippet found here: http://snippets.dzone.com/posts/show/5206 (very slightly altered). The problem only occurs when I try to set the :url option. Without it works fine, except I haven't been able to (can't figure it out) create links to go to the next or previous weeks.
Any help, or suggestions are greatly appreciated, or if you know of a different way to go about it.
The code for the various files are posted below. "start_date" and "end_date" are columns in the table "lessons", while "starts_at" and "ends_at" are options for the helper.
WEEK_VIEW_HELPER.RB:
require 'date'
# Author: Josh Adams # This helper is based on CalendarHelper. # WeekViewHelper allows you to draw a databound week view calendar with fine-grained CSS formatting module WeekViewHelper VERSION = '0.0.1'
# Returns an HTML week-view calendar. In its simplest form, this method generates a plain # calendar (which can then be customized using CSS) for a given span of days. # However, this may be customized in a variety of ways -- changing the default CSS # classes, generating the individual day entries yourself, and so on.