Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few mods to the 'readme' #1

Open
greggturnbull opened this issue Jun 18, 2009 · 1 comment
Open

A few mods to the 'readme' #1

greggturnbull opened this issue Jun 18, 2009 · 1 comment

Comments

@greggturnbull
Copy link

No description provided.

@greggturnbull
Copy link
Author

As noted the end_hour will include all increments starting with that hour , ie. if you set end_hour to 17 and your minute_interval is 15 then you will display 5:00pm, 5:15pm, 5:30pm, and 5:45pm. To get around this you can set your end hour to 16.25. Now only 5PM will display.

2...
This may have just been me but when adding the params as you displayed them I got an error ' can't dup NilClass' on for submit. I modifided them like so, changing 'i' to '5i', and the error was no more:

before:
params[:event][:time] = Time.parse(params[:event][:"time(i)"])
params[:event].delete(:"time(i)")

After:
params[:event][:time] = Time.parse(params[:event][:"time(5i)"])
params[:event].delete(:"time(5i)")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant