David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said over 6 years ago on ViewComponent in Rails :
My dive into ViewComponent is probably on hold until it settles down a bit. 

I'll probably revisit older episodes down the road as it is inevitable for things to get out of date.

This is a pretty good read of what's been going on with this gem. https://github.com/github/actionview-component/issues/206

David Kimura PRO said over 6 years ago on ViewComponent in Rails :
Any specific errors or issues?

David Kimura PRO said over 6 years ago on FullCalendar Events and Scheduling :
Sure thing. I actually just ran through this battle not too long ago. Are you initializing it with a stimulus controller or just in the packs?

David Kimura PRO said over 6 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 6 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.