elliotcm / generic_form_builder

A generic Rails 3/4/5? form builder
5 stars 11 forks source link

Pass on options #3

Closed rentalcustard closed 12 years ago

rentalcustard commented 12 years ago

God damnit Elliot.

This patch makes your shit pass on any options it doesn't recognise to the super() call. Which means that if you specify e.g. size on a text field:

f.text_field :email, :size => 15

It actually gets that size.

I couldn't work out quickly how to make it work for the other kinds of fields, or perhaps I was just too lazy. You should do that.

elliotcm commented 12 years ago

If you can reset your master to mine and drop this commit back on top I'll be sure to get right on that.

As it stands I am super lazy and I'm not sure I can do more than push that green button up there.

rentalcustard commented 12 years ago

DONE

elliotcm commented 12 years ago

Alright then I will assume it works because I am an attentive and useful open source parent.

PUSHING BUTTON NOW