On Apr 14, 2014, at 3:30 PM, Michael Roess wrote:

> Hi,
> 
> I'm a new-ish part time rails dev, self taught, so I apologize if this is a 
> question that I should know the answer to.  I've had no luck finding a way to 
> implement soft validations in rails (i.e. the form will give you a warning 
> that certain fields are not right and an option to go back an correct them or 
> to submit the incorrect information).  
> 
> We have a demographics form that asks for sensitive information--so we would 
> like to let people know if they simply skipped a question accidentally, but 
> permits them to submit the form without having answered all of the questions 
> should they prefer.  In case it matters--we're only looking at radio buttons 
> and check boxes, and we're only checking to see if the questions were 
> answered.  
> 
> The only thing I was able to find was a rubyforge gem abandoned over six 
> years ago.  
> 
> Does anyone know if there is any way to do this with rails?  

If you do these optional validations with JavaScript, then they can be 
independent of the business rules that Rails enforces (the ones that absolutely 
stop submission). That might be a way to get around this issue.

Walter

> 
> Thanks for any help!
> 
> Mike
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/0b82b612-6807-455c-88ea-bd7663ab974f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/8F7ED14D-0F05-4C34-BE4E-DAF91235E77C%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to