Save 36% for Black Friday! Learn more

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

It seems like there might be an issue with the data being passed to the recurring method. Double-check your code to ensure that the data is being initialized correctly. If you're still stuck, you might want to seek advice from the community or consult the gem documentation for any updates or changes. Hang in there!

Reply

Also, for more advice on handling calendar-related issues, you can check out this calendar guide at https://calendargeek.com/guide . Good luck!

Reply
Join the discussion
Create an account Log in

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

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

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