DISQUS

OLD Bamboo Blog: Sexy Forms for Merb

  • Cristi Balan · 1 year ago
    Nice html output. It's exactly what I use for forms most of the time.

    ps: Your code is experiencing random smilies and missing textfields :)
  • Cristi Balan · 1 year ago
    Nice html output. It's exactly what I use for forms most of the time.

    ps: Your code is experiencing random smilies and missing textfields :)
  • Thomas Hurst · 1 year ago
    Be warned, having the label to the side instead of above (like on this comment form) can be bad for accuracy and eye movement. With it to the side people zig-zag, with them above they can take the form in with a single scan and are less likely to need to re-check labels or mix up inputs.

    A nice small study on it: http://www.uxmatters.com/MT/archives/000107.php
  • Matt · 1 year ago
    @thomas, the position of the labels is set by css so you can set it where you like, just override it.
  • Gregg Pollack · 1 year ago
    For Rails there's the Awesome Fields plugin which we talked about on a previous podcast.

    http://github.com/Shadowfiend/awesome_fields/tr...

    Similar idea.
  • Xavier Shay · 1 year ago
    Ah, but if you want sexy forms that are also accessible, you want formtastic (rails):
    http://github.com/justinfrench/formtastic/tree/...
  • Kyle Drake · 1 year ago
    I like this approach, and I think this is the way to go. I would much rather have validations on the client side (or at least have it as an option), even if I do use validations on the models for safety and to stop people from mucking with things. Doing validations on submit blows up file uploads too, which is thoroughly annoying.

    I look forward to when Merb gets a little more stable and I'll definitely use this code or something closely resembling it. Thanks!
  • MJ · 1 year ago
    Nice form output!

    We're just starting to experiment with Merb and it's good to see there are other dev-shops out there embracing this newer technology.
  • uysys · 1 year ago