- if @this_user = User.active.find_by_display_name(params[:display_name])
- @title = t "note.mine.title", :user => @this_user.display_name
- @heading = t "note.mine.heading", :user => @this_user.display_name
- @description = t "note.mine.subheading", :user => render_to_string(:partial => "user", :object => @this_user)
+ if @user = User.active.find_by(:display_name => params[:display_name])
+ @params = params.permit(:display_name)
+ @title = t "note.mine.title", :user => @user.display_name
+ @heading = t "note.mine.heading", :user => @user.display_name
+ @description = t "note.mine.subheading", :user => render_to_string(:partial => "user", :object => @user)