In the following scenario, I need to check the value of the object property in the fields_for
loop.
<%= f.semantic_fields_for :review_details do
I got it, I can use
rd.object.review_criteria_id
object
is the default wrapper object for the fields_for
loop.
Formtastic adds additional features to the Rails code, but doesn't take away existing functionality so the following should work for you:
rd.object.review_criteria_id
'object' can be used in plain Rails form helpers to access the underlying bound object, and Formtastic honours this convention.