excid3 / simple_calendar

A wonderfully simple calendar gem for Rails
http://excid3.github.io/simple_calendar
MIT License
1.58k stars 268 forks source link

Feature Request: Add a "Today" button between "Previous" and "Next" #272

Closed EmCousin closed 1 year ago

EmCousin commented 2 years ago

The title explains it all. The implementation would be as simple as this in lib/simple_calendar/simple_calendar.rb:

def url_for_today_view
  view_context.url_for(@params.merge(start_date_param => Date.current.iso8601))
end

Happy to push a Pull Request if needed

excid3 commented 2 years ago

That would be a nice addition. 👍 PR is welcome!

EmCousin commented 2 years ago

@excid3 PR is here: https://github.com/excid3/simple_calendar/pull/273