DEV Community

loading...

Discussion on: Introducing Optimism: realtime remote form validation for Rails

Collapse
ben profile image
Ben Halpern

I’m not totally sure I follow, what is this doing differently than AJAX?

Collapse
leastbad profile image
leastbad Author

Hey Ben, did you ever get to try Optimism? Still patiently waiting to offer any help.

The only thing that's changed since my last note is how popular it's become. ;)

Collapse
leastbad profile image
leastbad Author • Edited

Probably best to take a quick read through optimism.leastbad.com/quick-start but while the form itself is submitted via UJS (Ajax / remote=true) out of the box there is nothing in Rails to handle in-line validation errors.

I promise you that there's a lightbulb/aha! moment in your immediate future. Give it a try.

(This is of the "holy crap, I didn't have to write any code" variety.)

Collapse
leastbad profile image
leastbad Author

Let me know if you have any issues getting it fired up; it should take <2m. I genuinely want you to love it.

Forem Open with the Forem app