David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
Ruby Rogues Panelist
David Kimura PRO said over 4 years ago on FullCalendar Events and Scheduling :
Here is a working example with a Stimulus Controller for Full Calendar v4+ (jQuery dependency removed)

// yarn add @fullcalendar/core
// yarn add @fullcalendar/daygrid

import { Controller } from "stimulus"
import { Calendar } from '@fullcalendar/core';
import dayGridPlugin from '@fullcalendar/daygrid';
import '@fullcalendar/core/main.css'
export default class extends Controller {
  static targets = ["calendar"]
  initialize() { }

  connect() {
    let calendar = new Calendar(this.calendarTarget, {
      header: {
        left: 'prev,next today',
        center: 'title',
        right: 'dayGridMonth,dayGridWeek,dayGridDay'
      },
      eventLimit: true,
      views: {
        dayGridMonth: {
          eventLimit: 3
        }
      },
      events: '/admin/events.json',
      plugins: [dayGridPlugin]
    })
    calendar.render();

  }

  disconnect() { }
}

David Kimura PRO said over 4 years ago on FullCalendar Events and Scheduling :
I don't have a full working example right now, just what I posted above since this was my use case. However, I will put it on my list to do an equivalent example to what this episode shows, but with modern Rails/Webpacker/Full Calendar.

David Kimura PRO said over 4 years ago on Audio Streaming with Active Storage :
You can use @podcast.audio.service_url  instead of url_for(@podcast.audio) which will be a direct link to the S3 endpoint.  However, if you're using a different storage mechanism like disk in your development environment, it wouldn't work. You may need to have minio or something similar within your development environment.

David Kimura PRO said over 4 years ago on Audio Streaming with Active Storage :
Awesome   ! Glad to hear that!

David Kimura PRO said over 4 years ago on Feature Testing with Capybara :
  Version of Capybara or Rails?