diff options
Diffstat (limited to 't/rails3-app/app')
-rw-r--r-- | t/rails3-app/app/controllers/application_controller.rb | 4 | ||||
-rw-r--r-- | t/rails3-app/app/helpers/application_helper.rb | 2 | ||||
-rw-r--r-- | t/rails3-app/app/views/layouts/application.html.erb | 14 |
3 files changed, 20 insertions, 0 deletions
diff --git a/t/rails3-app/app/controllers/application_controller.rb b/t/rails3-app/app/controllers/application_controller.rb new file mode 100644 index 0000000..f2569b3 --- /dev/null +++ b/t/rails3-app/app/controllers/application_controller.rb @@ -0,0 +1,4 @@ +class ApplicationController < ActionController::Base + protect_from_forgery + layout 'application' +end diff --git a/t/rails3-app/app/helpers/application_helper.rb b/t/rails3-app/app/helpers/application_helper.rb new file mode 100644 index 0000000..de6be79 --- /dev/null +++ b/t/rails3-app/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/t/rails3-app/app/views/layouts/application.html.erb b/t/rails3-app/app/views/layouts/application.html.erb new file mode 100644 index 0000000..89179cb --- /dev/null +++ b/t/rails3-app/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> + <title>App</title> + <%= stylesheet_link_tag :all %> + <%= javascript_include_tag :defaults %> + <%= csrf_meta_tag %> +</head> +<body> + +<%= yield %> + +</body> +</html> |