Skip to content

Commit

Permalink
Fixed a small typo in readme. (#130)
Browse files Browse the repository at this point in the history
Changed :
<%= month_calendar(attribute: :starts_at) do |date| %>
  <%= day %>
<% end %>

To: 
<%= month_calendar(attribute: :starts_at) do |date| %>
  <%= date %>
<% end %>
  • Loading branch information
stoutpanda authored and excid3 committed Apr 11, 2016
1 parent 6cf82f0 commit 05fce0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -89,7 +89,7 @@ pass it in as the `attribute` option**

```erb
<%= month_calendar(attribute: :starts_at) do |date| %>
<%= day %>
<%= date %>
<% end %>
```
**If you already have a model with a start time attribute called something other than `start_time` or accesses it through a relationship, you can alias the attribute by defining a `start_time` method in the my_model.rb file and not have to specify it separately as in the above example**
Expand Down

0 comments on commit 05fce0f

Please sign in to comment.