Get a value of object field inside 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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)