That should be <attachement-url-view:>
Hobo dasherizes it when making it a parameter. Bryan On Wed, Oct 31, 2012 at 1:57 PM, Ignacio Huerta <[email protected]> wrote: > Assuming you have a "medium" size defined in the model paperclip > configuracion, you could try something like this: > > > <table-plus:uploads fields="this, attachment.url, attachment_content_type, > attachment_updated_at"> > <attachment_url-view:> > <img src="#{this_parent.attachment.url(:medium)}"/> > </attachment_url-view:> > > > Regards, > Ignacio > > > El 29/10/12 22:41, Arve Voldsund escribió: > >> I've managed to get stuck in table-plus. I want to preview the thumb, >> not the original file as it is now. >> >> I have this: >> >> <show-page> >> <prepend-content-header:> >> <a:project>«<ht key="upload.actions.back_to_parent" >> parent="Project" name="&this"> Back to <name/></ht></a:project> >> </prepend-content-header:> >> >> <field-list: replace/> >> <collection: replace> >> <table-plus:uploads fields="this, attachment.url, >> attachment_content_type, attachment_updated_at"> >> <attachment_url-heading:> >> <a href="">File preview</a> >> </attachment_url-heading:> >> <attachment_url-view:> >> <img src="#{this}"/> >> </attachment_url-view:> >> >> <empty-message:>No uploads assigned to this projectfile.</empty-message:> >> </table-plus:uploads> >> </collection:> >> </show-page> >> >> I have tried to replace attachment.url with just about everything, but I >> just can't figure out how to get the thumb instead of the original. >> >> Arve >> >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Hobo Users" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/hobousers/-/RFr3pOqnZboJ. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/hobousers?hl=en. > > > -- > Ignacio Huerta Arteche > http://www.ihuerta.net > Teléfono: 0034 645 70 77 35 > Email realizado con software libre > > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/hobousers?hl=en. > -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
