<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -44,7 +44,8 @@ Then if you create and hookup the calendar controller
 routes.rb
 
   map.calendar &quot;/calendar/:year/:month&quot;, :controller =&gt; &quot;calendar&quot;, :action =&gt; &quot;index&quot;, :year =&gt; Time.now.year, :month =&gt; Time.now.month
-
+  map.calendar &quot;/calendar/:year/:month/:day&quot;, :controller =&gt; &quot;calendar&quot;, :action =&gt; &quot;index&quot;, :year =&gt; Time.now.year, :month =&gt; Time.now.month, :day =&gt; Time.now.month
+  
 CalendarController.rb
 
   def index
@@ -112,7 +113,8 @@ The default options for the calendar are:
     :event_width =&gt; 85,
     :event_height =&gt; 18,
     :min_height =&gt; 70,
-    :event_margin =&gt; 2
+    :event_margin =&gt; 2,
+    :link_to_day =&gt; false
   }
   
 You can override any of these by passing your options to the calendar method.</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -83,7 +83,8 @@ module EventCalendar
         :event_width =&gt; 85,
         :event_height =&gt; 18,
         :min_height =&gt; 70,
-        :event_margin =&gt; 2
+        :event_margin =&gt; 2,
+        :link_to_day =&gt; false
       }
       options = defaults.merge options
     
@@ -150,7 +151,11 @@ module EventCalendar
         cell_attrs[:class] += &quot; today&quot; if (cur == Date.today) and options[:show_today]
         cell_attrs[:style] = &quot;width:#{event_width-2}px;&quot; # subtract 2 for the borders
         cell_attrs = cell_attrs.map {|k, v| %(#{k}=&quot;#{v}&quot;) }.join(&quot; &quot;)
-        cal &lt;&lt; &quot;&lt;td #{cell_attrs}&gt;#{cell_text}&lt;/td&gt;&quot;
+        if options[:link_to_day]
+          cal &lt;&lt; &quot;&lt;td #{cell_attrs}&gt;#{day_link(cell_text, cur)}&lt;/td&gt;&quot;
+        else 
+          cal &lt;&lt; &quot;&lt;td #{cell_attrs}&gt;#{cell_text}&lt;/td&gt;&quot;
+        end
       
         if cur.wday == last_weekday
           # calendar rows events
@@ -191,6 +196,10 @@ module EventCalendar
       end
       cal &lt;&lt; &quot;&lt;/tbody&gt;&lt;/table&gt;&quot;
     end
+    
+    def day_link(text, date)
+      link_to(text, &quot;/calendar/#{date.year}/#{date.month}/#{date.day}&quot;
+    end
   
     private
   </diff>
      <filename>lib/event_calendar/calendar_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b92e1dc9d92b84931d2d9dab0e9646aa26bee250</id>
    </parent>
  </parents>
  <author>
    <name>Jim and Patrick</name>
    <email>bigtiger@hashrocket.com</email>
  </author>
  <url>http://github.com/elevation/event_calendar/commit/77a25a92dc190f88c051c968b824851cacf8c002</url>
  <id>77a25a92dc190f88c051c968b824851cacf8c002</id>
  <committed-date>2009-10-07T16:51:13-07:00</committed-date>
  <authored-date>2009-10-07T16:46:49-07:00</authored-date>
  <message>Add support for viewing one day

- Defaults to current functionality, no link
- Enabled by setting link_to_day option
- Overwrite day_link in calendar helper to change link</message>
  <tree>07895616c205b635ca0d62756881f74ae4802977</tree>
  <committer>
    <name>Jim and Patrick</name>
    <email>bigtiger@hashrocket.com</email>
  </committer>
</commit>
