Giter Site home page Giter Site logo

Comments (7)

tchaicowsky avatar tchaicowsky commented on June 25, 2024

Update: Now instead of giving a "We're sorry, something went wrong" message, the app just breaks:

ArgumentError in ApplicationController#update_cart
invalid date

from reservations.

caseywatts avatar caseywatts commented on June 25, 2024

The "we're sorry, something went wrong" happens on the production server, life, as a prettier frontent. The ArgumentError... is ugly but informational for our development server. Same problem!
I think validations would do the trick~!

from reservations.

ebmaher avatar ebmaher commented on June 25, 2024

with the new version of date searches (calendar! yay!) this shouldn't ever be a problem. closing issue.

from reservations.

caseywatts avatar caseywatts commented on June 25, 2024

Even if we try to break it? :O

from reservations.

ebmaher avatar ebmaher commented on June 25, 2024

womp. this can be broken. working on it

from reservations.

dgoerger avatar dgoerger commented on June 25, 2024

datepicker successfully prevents the input of invalid dates. tested with 06/31/2012 and 02/29/2013. resolving.

from reservations.

adambray avatar adambray commented on June 25, 2024

You can still enter invalid dates by hand, and the update_cart method will throw an ArguementError: invalid date silently.

We should have error messages displayed in this case.

from reservations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.