nested forms - How do I add different field types using rails nested_form -
i'm want use ryanb/nested_form gem (or similar) create associations many different field types. consider model called content might have many content_blocks should have text inputs, text areas, or image upload fields (different field types) dependant on required. got ideas on how achieve this? far can work out how add multiple fields of same type. i.e standard project -> task -> subtask ... pattern.
or there better solution?
thanks! -j
you can use cocoon gem nested_form
. also, there tutorial on nested form ryan bates on railscasts
Comments
Post a Comment