Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Yumel Hernandez
11,902 PointsHow can i allow users to post images on treebook?
How can i allow users to post images on treebook with ruby.
3 Answers
Malgorzata Dlugosz
907 PointsWith paperclip, User has many posts, while posts has many attachments. Each post can accept one or more images.. Conclusion, you need to add images field to the posts. User will be able to post a post with an images attached to it. Here's great tutorial I used to learn images upload. http://railscasts.com/episodes/134-paperclip
Or search google for - Paperclip image multiupload.
Hope that helps a little.
Malgorzata Dlugosz
907 PointsAlso you should rea about -> accepts_nested_resources :)
Yumel Hernandez
11,902 PointsI have not gotten to ruby, i was just wondering but thanks, appreciate it. How long would it take to integrate this ^?
Malgorzata Dlugosz
907 PointsIf you know what you're doing it takes no more than an hour :)