crystal-community / crystal-libraries-needed

A list of libraries that are needed or wanted for the Crystal-Language
141 stars 4 forks source link

Simple Form #10

Open drujensen opened 7 years ago

molovo commented 7 years ago

@drujensen What did you mean by this? A form builder, or something different?

I've built a couple of those in PHP for different projects, with an API very similar to Laravel's, so if that's the case I'd happily add it to my to-do list.

bigtunacan commented 7 years ago

@molovo Yes; that is what he is referring to. You can see Simple Form here. https://github.com/plataformatec/simple_form

It's the top form gem in Ruby. For a long time Formtastic was the most used, but it became unmaintained for a long time. (https://github.com/justinfrench/formtastic) Although now that gem is once again up to date and maintained as well.

felipeelias commented 7 years ago

@molovo have you started working on this? I'm willing to give it a try if you haven't

molovo commented 7 years ago

@felipeelias I haven't, and I'm unlikely too any time soon, so crack on

molovo commented 7 years ago

Is there a decent data validation library out there that we could integrate with this?

felipeelias commented 7 years ago

@molovo not that I know of. My idea is that the form builder may expect some object that defines a simple interface, like valid? and errors to display validation messages.

I didn't get there yet but I have started something here. It's very minor but I'm already using in one project of mine.