Skip to content

Commit

Permalink
Merge pull request hotsh#522 from buddhamagnet/master
Browse files Browse the repository at this point in the history
Added dynamic title to user show action
  • Loading branch information
Carol Nichols committed Mar 28, 2012
2 parents 6c21e54 + 63150b2 commit f637e01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/users_controller.rb
Expand Up @@ -16,10 +16,11 @@ def show
if @user.nil?
render :file => "#{Rails.root}/public/404.html", :status => 404
elsif @user.username != params[:id] # case difference
@title = @user.username
redirect_to user_path(@user)
else
set_params_page

@title = @user.username
@author = @user.author
@updates = @user.updates
@updates = @updates.paginate(:page => params[:page], :per_page => params[:per_page])
Expand Down

0 comments on commit f637e01

Please sign in to comment.