Displaying 1 result from an estimated 1 matches for "set_article_author".
2006 Oct 07
3
blog_id magic with typo
...n the same typo.
And its almost done, except that...i am stuck at one place.
When a user posts a new article, depending upon current blog_id, I
would like 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 befo...