-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stripping out Params #17
Comments
It appears that any fields that are |
After some more investigation the problem appears to be that My use case for this is a project that I am working on is using the datastore to serialize a few fields. Is this a bug in |
This type of problem was one of my concerns with trying to direct other form builders like Simple Form through Signed Form. If it is specifically an incompatibility with Simple Form I'm not sure what the solution will be. I originally had separate adapters for other builders but decided to make Signed Form more general so it would potentially work without needing an adapter. Now it appears maybe an adapter would be required for compatibility if we need to do something special to get it to play nice with Simple Form. I certainly don't want specific Simple Form code in Signed Form. At the moment I don't have much time to investigate. If you have the time and inclination to work up a solution I'd be happy to take a look at it. Otherwise I'll try to get something figured out in the coming weeks. Thanks for the report! |
@ready4god2513 are you using any other form builder things besides SimpleForm and SignedForm? |
No, just those two. I put my feature branch on hold for a bit, though. Once I jump back to that branch I will be taking a closer look to solve this issue. |
I'm also hitting this but not for using SimpleForm. Just regular rails form builder helpers. Example:
In this we are using the The checkboxes selected are stripped because signed_form assumes it is a scalar and not an array. I can currently work around this by adding:
Sounds like we may need to add some additional coding for |
PRs regarding these things would be welcome. I honestly just don't have the time to look into this stuff right now. |
Would be great to see this included. It's the only thing which I see as a problem with this very nice gem. |
|
I am wondering if I am missing something. When I submit forms, it appears that some of the fields are being stripped out. When I pull signed_form, all is well.
Here are the request params-
But when I do
raise params.inspect
I see-Quite a few fields are being removed. There are a few other forms in my app that have this same issue. Any ideas?
The text was updated successfully, but these errors were encountered: