Sorry about the late reply. I fixed this right after I posted (eureka), but 
forgot to post what I did... 

I ended up doing this, which seems to work fine:

<show-page>
 <prepend-content-header:>
        <a:project>&laquo;<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, note, attachment, 
attachment_content_type, attachment_updated_at">

                                <attachment-heading:>
                                        <a href="">File preview</a>
                                </attachment-heading:>
                                <attachment-view:>
                                <% if this_parent.attachment_content_type=~ 
%r{^(image|(x-)?application)/(bmp|gif|jpeg|jpg|pjpeg|png|x-png)$} %>
                                        <img 
src="#{this_parent.attachment.url(:thumb)}"/>
                                <%elsif this_parent.attachment_content_type=~ 
%r{^(audio|(x-)?application)/(mpeg|x-m4a)$}%>
                                         
<%=audio_tag("#{this_parent.attachment.url(:original)}", :autoplay => false, 
:controls => true)%>
                                        
                                <%elsif this_parent.attachment_content_type=~ 
%r{^(video|(x-)?application)/(quicktime|mp4)$}%>
                                         
<%=video_tag("#{this_parent.attachment.url(:original)}", :autoplay => false, 
:height=>100, :controls => true)%>                                        
                                <% end  %>
                                </attachment-view:>
                                <note-heading:>
                                        <a href="">Describe file</a>
                                </note-heading:>
                                <note-view:>
                                        <editor/>
                                </note-view:>

                                <empty-message:>No uploads assigned to this 
projectfile.</empty-message:>
                        </table-plus:uploads>
                </collection:>
</show-page>


Arve


On Nov 1, 2012, at 10:56 PM, Ignacio Huerta <[email protected]> wrote:

> Yep, Bryan is right, my fault :P.
> 
> Regards,
> Ignacio
> 
> El 31/10/12 20:07, Bryan Larsen escribió:
>> 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>&laquo;<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.
>>> 
>> 
> 
> -- 
> 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.

Reply via email to