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,
Reply

@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.

Reply
Join the discussion
Create an account Log in

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

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

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

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2023 GoRails, LLC. All rights reserved.