In my show page I have:

<show-page>
<before-content-body:>
<%= image_tag @user.photo.url(:normal) %>
</before-content-body:>
</show-page>

which works

In my index page I have:

1    <index-page>
2    <prepend-content-body:>
3    <%= image_tag @user.photo.url(:normal) %>
4    </prepend-content-body:>
5    </index-page>

which throws error:

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.photo

Extracted source (around line #3):


any idea why the index page can't figure out the user.photo?
--~--~---------~--~----~------------~-------~--~----~
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