Displaying 1 result from an estimated 1 matches for "article_attachments_count".
2007 Jul 19
3
Merb::Controller#url Usage
...find an article:
irb(main):003:0> article = Article.find(1)
=> #<Article:0x341f2b4 @attributes={"intro"=>nil,
"updated_at"=>"2007-07-18 21:31:35", "title"=>"asdf", "body"=>nil,
"id"=>"1", "article_attachments_count"=>"2", "published_at"=>nil,
"created_at"=>"2007-07-18 21:31:35"}>
And an attachment of that article:
irb(main):004:0> attachment = article.article_attachments.find(1)
=> #<ArticleAttachment:0x3410b60 @attributes={"content_type...