Displaying 2 results from an estimated 2 matches for "forum_messages".
Did you mean:
forum_message
2006 Feb 03
2
acts_as_tree counter_cache behavior is different than API docs
...)
This follows the the API docs pretty closely at
http://ar.rubyonrails.com/classes/ActiveRecord/Acts/Tree/ClassMethods.html
However, the test fails for this reason:
4) Error:
test_proper_creation_of_message_reply(ForumMessageTest):
ActiveRecord::StatementInvalid: PGError: ERROR: column
"forum_messages_count" does not exist
: UPDATE forum_message SET forum_messages_count = forum_messages_count + 1
WHERE (id = 1)
The docs do not mention creating a table column based on the model name. Is
this the now intended behavior?
Where is it documented and can the name of the column be overridden?
Th...
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 =>"3...