Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def require_blog_owner
- blog = Blog.find_by_short_name(params[:id])
- unless blog.blogger.id == current_blogger.id
- flash[:error] = "You can't update that blog"
- redirect_to(root_path)
- end
- end
Add Comment
Please, Sign In to add comment