README.md in simple_calendar-0.1.9 vs README.md in simple_calendar-0.1.10
- old
+ new
@@ -4,18 +4,18 @@
This is a small Rails 3.2 gem for creating a quick and clean table calendar.
Theming is up to you, but it works nicely with Twitter Bootstrap. It's
compatible with pure Ruby classes, ActiveRecord, Mongoid, and any other
ORM.
-Thanks to Josh Chernoff and all other contributors.
+Thanks to all of the awesome contributors!
Installation
------------
Just add this into your Gemfile followed by a bundle install:
- gem "simple_calendar", "~> 0.1.9"
+ gem "simple_calendar", "~> 0.1.10"
Usage
-----
#### Model
@@ -122,9 +122,19 @@
```erb
<%= calendar @events, empty_date: lambda{ |date| "hello from #{date}" } do |event| %>
<%= event.name %>
<% end %>
```
+The `not_empty_date` option accepts a block that will be called when a day
+in the calendar has at least one event. It will be called with the date object that
+represents the day that has some events.
+
+```erb
+ <%= calendar @events, not_empty_date: lambda{ |date| "hello from #{date}" } do |event| %>
+ <%= event.name %>
+ <% end %>
+```
+
CSS
---
You will probably want to customize the height of the calendar so that