standard-library / microform

Tiny form object pattern for Rails
MIT License
0 stars 0 forks source link

Readme #7

Closed ghost closed 7 years ago

ghost commented 7 years ago

Included:

Missing: Logo

Notes:

jackjennings commented 7 years ago

I'm not sure that I can really confidently say that the behavior of passing method calls through to the record isn't a kind of duck-type, but I just think that it's more accurate to say that the methods that I mentioned and their arguments are closer to how that concept would be applied traditionally.

The idea too is that the interface for the form objects is very small: an initializer and a method call. Everything else can be loose, as long as those qualities exist. Since they are required to use the submit controller method, it's worth providing an code example at the top of Usage.

jackjennings commented 7 years ago

Regarding test code: If someone wants to include RSpec code we can update the generator, though since we're not using RSpec at this point I'd be fine holding off.

jackjennings commented 7 years ago

Logo is fine to ignore ;)