search for: class_cal

Displaying 1 result from an estimated 1 matches for "class_cal".

Did you mean: clasical
2011 Jan 08
1
Paperclip custom Interpolation in url
Folks, I have a simple model hierarchy (reduced to example as below) class Post < ActiveRecord::Base has_many :comments end class Comment < ActiveRecord::Base belongs_to :post has_attached_file :photo, # :url => "/assets/class_cal/<original post date>/:id/:style/:basename.:extension" :url => "/assets/post/:post_date/:id/:style/:basename.:extension" end What I want to do: I am trying to insert the "original post date" in the url with the :post_date (stored in the Post model) interpolation...