diff options
| author | hukl <hukl@eight.local> | 2009-01-29 21:40:04 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-01-29 21:40:04 +0100 |
| commit | d4dfdb40329b8e15e6bba022b966984a8a994a87 (patch) | |
| tree | 6e427c2e02308d5b3d554b44d13f2764303da743 /app | |
| parent | b298d3e8eeb10903bd4640dab7c11d0dc1be9d38 (diff) | |
added the content controller which will be responsible for rendering all public pages later on. added a new custom route for the public url schema as well as a functional test which tests the correct mapping of the custom route
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/content_controller.rb | 5 | ||||
| -rw-r--r-- | app/helpers/content_helper.rb | 2 | ||||
| -rw-r--r-- | app/views/content/render_page.html.erb | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb new file mode 100644 index 0000000..afa093c --- /dev/null +++ b/app/controllers/content_controller.rb | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | class ContentController < ApplicationController | ||
| 2 | def render_page | ||
| 3 | end | ||
| 4 | |||
| 5 | end | ||
diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb new file mode 100644 index 0000000..3199604 --- /dev/null +++ b/app/helpers/content_helper.rb | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | module ContentHelper | ||
| 2 | end | ||
diff --git a/app/views/content/render_page.html.erb b/app/views/content/render_page.html.erb new file mode 100644 index 0000000..af7ef88 --- /dev/null +++ b/app/views/content/render_page.html.erb | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | <h1>Content#render_page</h1> | ||
| 2 | <p>Find me in app/views/content/render_page.html.erb</p> | ||
