Created
August 2, 2016 21:30
-
-
Save csessig86/03105e5286240d92f6c13ec7b8be1ab1 to your computer and use it in GitHub Desktop.
If, else start time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if params[:event][:start_time_time].to_time >= params[:event][:end_time_time].to_time | |
@event = Event.new(event_params) | |
@event.errors[:base] << "The end time must be after the start time." | |
else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment