All threads / Adding event to date on month calendar

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Adding event to date on month calendar

Jeff Wolfram asked in Rails

I have the calendar set up and all is working great. Right now I just have a button on the Month calendar page that says add event. The form opens and you need to select the date. I would like to add a button to each date square in the month calendar that is labeled new. You would click on the button and a modal would pop up and you would be presented with the event form with that date already filled out. How would I go about doing that? I have the modal working with Bootstrap but I am just not sure how to fill in the date for the user. Any help would be much appreciated.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,399+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.