Ruby on Rails Wednesday, March 5, 2014



On Tuesday, March 4, 2014 1:49:34 PM UTC, bertly_the_coder wrote:
Hi guys,

Has anyone figured out how to test strong parameters?

What have you got

config.action_controller.action_on_unpermitted_parameters 

set to?

I set it to :raise in test/development, so that submitting incorrect parameters will cause tests to fail


Fred 

--
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+unsubscribe@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/4d033b3e-fadf-4fa7-aeb1-0fdb5ed81c04%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment