gregschmit / recurring_select

A gem for adding selectors for setting recurring events.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ArgumentError: Expecting Integer or nil value for count, got "60"

gitmandeep opened this issue · comments

When we try to update a monthly/weekly schedule and trying to select Day of month or Day of week using recurring_select dialog it is passing count parameter as a string to IceCube::Rule.from_hash method which is excepting count as a integer.

Add this line to filter_params method
params[:count] = params[:count].to_i if params[:count]