In Rails if the form field is empty it will submit an empty params
value.. Thats how it works by default.

Maybe an example would be better?


If you had two inputs, i1 and i2 and i1 had the word here and i2 was
empty when you press submit you get this back to you controller:

i1="here" i2=""

and if there is no validation rules in the model that would be saved
with the blank field..

Sounds like you are thinking Java and not Rails...

On Jan 30, 2:49 pm, Taylor Strait <[email protected]>
wrote:
> I've seen some Java implementations but is there a simpler way to force
> a form to submit ALL fields even if some are empty?  I need a consistent
> number of responses to tabulate the results, so having NULL or empty
> strings doesn't bother me.  The programmatic challenges of trying to
> reconstruct survey results outweigh the benefits of reducing a few
> database NULLs.  Thanks in advance!
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to