龚乐鑫修改意见4:去除render action 之前调用对应的 action 方法。
This commit is contained in:
parent
e543ad1bdf
commit
f05aee0ca2
|
@ -86,7 +86,6 @@ class CoursesController < ApplicationController
|
|||
else
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
settings
|
||||
render :action => 'settings'
|
||||
}
|
||||
format.api { render_validation_errors(@course) }
|
||||
|
|
|
@ -24,7 +24,6 @@ class SettingsController < ApplicationController
|
|||
before_filter :require_admin
|
||||
|
||||
def index
|
||||
edit
|
||||
render :action => 'edit'
|
||||
end
|
||||
|
||||
|
|
|
@ -57,7 +57,6 @@ class TrackersController < ApplicationController
|
|||
redirect_to trackers_path
|
||||
return
|
||||
end
|
||||
new
|
||||
render :action => 'new'
|
||||
end
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ class WebFooterCompaniesController < ApplicationController
|
|||
redirect_to web_footer_companies_path
|
||||
else
|
||||
flash[:error] = "#{l :web_footer_company_create_fail}: #{@company.errors.full_messages[0]}"
|
||||
new
|
||||
render :action => 'new'
|
||||
end
|
||||
end
|
||||
|
@ -42,7 +41,6 @@ class WebFooterCompaniesController < ApplicationController
|
|||
redirect_to web_footer_companies_path
|
||||
else
|
||||
flash[:error] = "#{l :web_footer_company_update_fail}: #{@company.errors.full_messages[0]}"
|
||||
edit
|
||||
render :action => 'edit'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -68,7 +68,6 @@ class WikiController < ApplicationController
|
|||
def show
|
||||
if @page.new_record?
|
||||
if User.current.allowed_to?(:edit_wiki_pages, @project) && editable? && !api_request?
|
||||
edit
|
||||
render :action => 'edit'
|
||||
else
|
||||
render_404
|
||||
|
|
Loading…
Reference in New Issue