My beautiful eyes [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3993 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
6f8c99fa34
commit
faecde0ec8
|
@ -2,7 +2,7 @@
|
||||||
"http://www.w3.org/TR/html4/loose.dtd">
|
"http://www.w3.org/TR/html4/loose.dtd">
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<h1>Application error (Apache)</h1>
|
<h1>Application error</h1>
|
||||||
<p>Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html</p>
|
<p>Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -11,11 +11,7 @@ class <%= controller_class_name %>Controller < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
|
||||||
# GET should only be used for operations which are 'safe', or read-only. So require
|
|
||||||
# post for all actions which change state.
|
|
||||||
#
|
|
||||||
# http://www.w3.org/2001/tag/doc/whenToUseGet.html
|
|
||||||
verify :method => :post, :only => [ :destroy<%= suffix %>, :create<%= suffix %>, :update<%= suffix %> ],
|
verify :method => :post, :only => [ :destroy<%= suffix %>, :create<%= suffix %>, :update<%= suffix %> ],
|
||||||
:redirect_to => { :action => :list<%= suffix %> }
|
:redirect_to => { :action => :list<%= suffix %> }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue