Displaying 1 result from an estimated 1 matches for "set_article_categori".
Did you mean:
set_article_categories
2006 Oct 07
3
blog_id magic with typo
...to set the blog_id attribute of @article object.
So..in the admin/content_controller.rb:
We have:
def new_or_edit
if request.post?
set_article_author
save_attachments
logger.info("**** and blog id in article is #{@article.blog_id}")
if @article.save
set_article_categories
set_the_flash
redirect_to :action => ''show'', :id => @article.id
end
end
end
So, just before the actual save, the value printed by logger.info is
"**** and blog id in article is 2".But after @article.save is
called...whatever may be the...