All threads / Calendar with Recurring Events Error Message - undefined method `has_key?' for "null":String

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Calendar with Recurring Events Error Message - undefined method `has_key?' for "null":String

BB asked in Rails
Hi I'm trying to follow Chris's Recurring events tutorial and I'm coming across this error message...


NoMethodError in EventsController#index

undefined method `has_key?' for "null":String

Extracted source (around line #15):
              | 
  def rule
    IceCube::Rule.from_hash recurring
  end

  def schedule(start)
...


Has anyone encountered this and happen to know the fix?  (I know the gem and video are pretty old but everything seemed to be working well up to this point).

thanks,

@BB have you been able to solve this?
I am also getting this error and have been stuck for a while now.

Edit:
Nvm for anyone facing this issue, just clear your events.
I had been trying several ways and the data had issues.

Join the discussion

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

Join 37,106+ 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.