The good news is that while proof reading
'Rapid Rails with Hobo', I have been learning
quite a bit :)
I came across the correct way of using the <a> tag,
<a action="edit" if="&can_edit?" class="edit">EDIT CURRENT</a>
which was a big revelation. Now since my permissions are set
correctly, EDIT CURRENT is only displayed if user is owner
and signed in on my 'Show' pages.
That is quite an improvement from the kludge I was using
with a form :(
However,
I discovered that I am still having a problem.
My edit page is loading up perfectly, except for the
'Upload file' portion which is being controlled by Paperclip
and has responds_to_parent thrown into the mix.
I thought I had run across a post somewhere about other
people having difficulty updating a Paperclip attachment,
but I can't find it now.
I noticed that if I created a new instance of my 'Photo'
object, that my form does come up correctly. But it seems
like that would be an iffy solution, if even possible.
So anyone else have trouble updating a Paperclip attachment,
or suggestions on how I could do a work-a-round with a new
Photo instance (I do need to access the current record, since
that is displayed in my edit page).
Cheers,
Jet
--
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.