ruby on rails - How do you loop through a field on a custom engine in refinery cms -



ruby on rails - How do you loop through a field on a custom engine in refinery cms -

i'm creating custom engine in refinery cms , have field called "pdf" refinery resource field type.

some entries in engine have 1 pdf, while others have multiple pdf's. there way without creating bunch of fields don't need?

i'd prefer loop through 1 pdf field rather code fields engine - pdf_1:resource, pdf_2:resource, pdf_3:resource, pdf_4:resource, pdf_5:resource, etc.

how this?

to best of knowledge there isn't built-in refinery process this. has_many way approach problem.

ruby-on-rails refinerycms refinery

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -