Skip to content

Adds SimpleForm support#134

Open
jerefrer wants to merge 5 commits intokreativgebiet:masterfrom
Projets2Coeur:SimpleForm
Open

Adds SimpleForm support#134
jerefrer wants to merge 5 commits intokreativgebiet:masterfrom
Projets2Coeur:SimpleForm

Conversation

@jerefrer
Copy link
Contributor

Hi there,

Here's a working version of the RichInput and RichPickerInput for SimpleForm.

For both I just copied the input code and wrapped it in a if Object.const_defined?("SimpleForm") block, so it's far from DRY but at least you have the SimpleForm equivalent of your Formtastic inputs.

May this be a first step toward SimpleForm compatibility :)

@glaucocustodio
Copy link

Great @jerefrer

@bastiaanterhorst
Copy link
Contributor

I'm not a simpleform user, can anyone verify this works?

@jerefrer
Copy link
Contributor Author

Ok I just refactored the code to extract everything that's not directly related to the form builder gem. Much cleaner now.

Though I could not test against Formtastic. Could someone do that ? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants