Skip to content

Commit

Permalink
Fix a typos. Fix user profile page not found, render to 404 page.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Mar 30, 2011
1 parent f102c3c commit 9e5311a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ class UsersController < ApplicationController
skip_before_filter :verify_authenticity_token, :only => [:auth_callback]
def show
@user = User.find_by_slug(params[:id])
if @user.blank?
render_404
end
end

def auth_callback
Expand Down
2 changes: 1 addition & 1 deletion config/setting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ production:
<<: *defaults
app_name: "者也"
# 页脚版权
foot_html: "&copy; 者也 zheye.org - 非营利问答平台, 开源项目,<a href=\"http://github.com/huacnlee/quora\">代码</a>。内测期间,如有问题还请谅解。<br />目前暂时只支持Chrome浏览器,请在 1280 宽度以上的分辨率下面浏览。<br />诚邀有志有能之士参与这个项目,需要1个前端,1个有推广"
foot_html: "&copy; 者也 zheye.org - 非营利问答平台, 开源项目,<a href=\"http://github.com/huacnlee/quora\">代码</a>。内测期间,如有问题还请谅解。<br />目前暂时只支持Chrome浏览器,请在 1280 宽度以上的分辨率下面浏览。<br />诚邀有志有能之士参与这个项目,需要1个前端,1个推广"
# 网站的域名
domain: "zheye.org"
# 配置图片的域名
Expand Down

0 comments on commit 9e5311a

Please sign in to comment.