search for: forum_messag

Displaying 2 results from an estimated 2 matches for "forum_messag".

Did you mean: forum_message
2006 Feb 03
2
acts_as_tree counter_cache behavior is different than API docs
...;'ll about this: The API docs for acts_as_tree''s counter_cache is to create a database column called "children_count" to hold the counter_cache. I have enabled this option in my model. While writing tests I wrote a test for creating children from the a parent: message = @forum_message["parent"].find child = message.children.create( "member_id" => 1, "forum_id" => 1, "subject" => ''another subject'', "body" => "good grief.") This follows the the API docs pretty closely at http://ar.rubyo...
2007 Dec 29
1
url_for_file_column not works
...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 =>&quot...