Render unknown user with concerns code in notes controller
This commit is contained in:
parent
4ceebefefa
commit
2d39ba7954
2 changed files with 2 additions and 5 deletions
|
@ -18,7 +18,7 @@ module UserMethods
|
|||
@not_found_user = name
|
||||
|
||||
respond_to do |format|
|
||||
format.html { render :template => "users/no_such_user", :status => :not_found }
|
||||
format.html { render :template => "users/no_such_user", :status => :not_found, :layout => "site" }
|
||||
format.all { head :not_found }
|
||||
end
|
||||
end
|
||||
|
|
|
@ -27,10 +27,7 @@ class NotesController < ApplicationController
|
|||
|
||||
render :layout => "site"
|
||||
else
|
||||
@title = t "users.no_such_user.title"
|
||||
@not_found_user = params[:display_name]
|
||||
|
||||
render :template => "users/no_such_user", :status => :not_found, :layout => "site"
|
||||
render_unknown_user params[:display_name]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue