localized_scaffold 0.9 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -276,7 +276,7 @@ class <%= controller_class_name %>Controller < ApplicationController
|
|
276
276
|
flash[:error] = t('<%= file_name %>.errors.not_found')
|
277
277
|
|
278
278
|
respond_to do |format|
|
279
|
-
format.html { redirect_to
|
279
|
+
format.html { redirect_to root_path }
|
280
280
|
format.xml { head 404 }
|
281
281
|
format.json { head 404 }
|
282
282
|
end
|
@@ -298,7 +298,7 @@ class <%= controller_class_name %>Controller < ApplicationController
|
|
298
298
|
flash[:error] = _('<%= belongsto.file_name %>.errors.not_found')
|
299
299
|
|
300
300
|
respond_to do |format|
|
301
|
-
format.html { redirect_to
|
301
|
+
format.html { redirect_to root_path }
|
302
302
|
format.xml { head 404 }
|
303
303
|
format.json { head 404 }
|
304
304
|
end
|