I am using the file column plugin.
If i upload an image it works correctly but if i want to show an image
it not works.
in my template i insert
url_for_file_column(@core, "image", "thumb")
but return ""
i tried to print @core.image but it is set to nil.
My model is this:
class Core < ActiveRecord::Base
has_one :forum_topic
has_many :votes
has_many :forum_messages ,:through => :forum_topic
attr_accessible :site,:descriptionm,:image
file_column :image,:magick=>{
:geometry=>''600x600>'',:attributes => { :quality
=> 60 },
:versions => {
:thumb => {:crop => "1:1", :geometry
=>"30x30",:attributes => {
:quality => 50 } },
:thumb_big=>{:crop => "1:1", :geometry
=>"62x62",:attributes =>
{ :quality => 50 } }
}
}
}
How i can do?
Thanks
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---