better gitignore, posts controller now uses translations that exist

This commit is contained in:
djones 2010-09-07 14:28:58 +12:00
parent 0c9b906056
commit ad62a155f1
2 changed files with 3 additions and 3 deletions

View file

@ -14,10 +14,10 @@ class Blog::PostsController < BlogController
def comment
if (@blog_comment = @blog_post.comments.create(params[:blog_comment])).valid?
if BlogComment::Moderation.enabled?
flash[:notice] = t('blog_posts.show.comments.thank_you_moderated')
flash[:notice] = t('blog.posts.comments.thank_you_moderated')
redirect_to blog_post_url(params[:id])
else
flash[:notice] = t('blog_posts.show.comments.thank_you')
flash[:notice] = t('blog.posts.comments.thank_you')
redirect_to blog_post_url(params[:id],
:anchor => "comment-#{@blog_comment.to_param}")
end