I decided that I use paperclip to handle my images.
I have this model for posts
class Micropost < ActiveRecord::Base
attr_accessible :content, :user_id
So according to the manual I have to do this :
But :photo is never used anywhere.
So do I have to change something or did I misunderstand the manual.
- in Gemfile add this gem
gem “paperclip”, “3.1.4”
- bundle install
3.after creating model add below code in migration
model migration file )
in your model Add this code
On Sat, Oct 6, 2012 at 9:10 PM, roelof [email protected] wrote:
You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
To view this discussion on the web visit
For more options, visit https://groups.google.com/groups/opt_out.
కాసిన్ని ఊహలు కలిపేస్తే