Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example of options you can pass to the day method #11

Open
chewmanfoo opened this issue Jan 6, 2012 · 0 comments
Open

example of options you can pass to the day method #11

chewmanfoo opened this issue Jan 6, 2012 · 0 comments

Comments

@chewmanfoo
Copy link

I need to highlight specific dates in a calendar_helper (some are to be blacked out on our calendar). So I need to do something like this:

  <% calendar.day(:day_method => :target_date) do |date, changes| %>
    <% if ScheduledBlackout.on_date(date).size > 0 %>
      <%= date.day  *options here to differentiate this day* %>
    <% else %>
      <%= date.day %>
    <% end %>

Can you tell me what kind of options the day method supports? Can I tell it which css class to render?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant