Skip to main content

SimpleCalendar 1.1 released! Discussion

General • Asked by Chris Oliver

Do you have a demo for this??

It just generates an HTML table, so there are no CSS styles applied by default. That's up to you. Here's a screenshot of it using Bootstrap. http://cl.ly/VYjp and an older version in use here at www.seattleastro.org/events...


Glad to have found simple_calendar. Thank you! Are there images missing or not displaying properly above? There are empty panels with captions above them saying things like, "You can make a 4 day agenda calendar:" I am trying to learn and understand all I can about simple_calendar in order to implement it in my app as soon as possible. Thank you again for your time and energy on this program.

Updated the post to show the code for those. I'll point you to the Github page for the latest info on the gem though: https://github.com/excid3/s...

Thank you so much!


Is it possible to display a weekly calendar with days going from Monday to Friday only? This is to make student timetable.

Yes, but you would want to create a custom class that inherits from the main calendar. You can take a look at this as an example and adapt it to be a business-week calendar. https://github.com/excid3/s...

I'm a newbie in Ruby and Rails as well, but I guess what you mean is to change this:

number_of_weeks = options.fetch(:number_of_weeks, 1) number_of_days = (number_of_weeks * 7) - 1

into this:

number_of_days = (number_of_weeks * 5) - 1

Is that it ??

Another option I just thought about is that you could use CSS to hide the weekends (the first and last TDs in each column) and render the normal week_calendar.

I will go for this one. Thanks


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.