Hi,

I am trying to use paperclip plugin to add images to the posts.

<%= render :partial => 'recent_posts', :collection => @posts %>
@posts = Post.find(:all, ..., :limit => 5)

#_recent_posts.rhtml
<%= image_tag recent_posts.photo.url(:thumb) %>

and it will end up with this error:
"undefined method `symbolize_keys!' for \"/posts/24?user_id=1\":String"

Anybody knows what does this error mean?
Thank you.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to