diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-07-02 18:03:37 -0400 | 
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-07-03 14:01:41 -0400 | 
| commit | 49b11f2864f75bcfb8d0d01439939ed68aa90b8f (patch) | |
| tree | c91d0976e9cb54562aa2c19f9648235d74f14cbf /app/controllers | |
| parent | cb01d13034ad41a29533b623cbbf7c23b37a231c (diff) | |
| download | thoughts-49b11f2864f75bcfb8d0d01439939ed68aa90b8f.tar.gz thoughts-49b11f2864f75bcfb8d0d01439939ed68aa90b8f.tar.bz2 thoughts-49b11f2864f75bcfb8d0d01439939ed68aa90b8f.zip | |
Collapsed Entry -> Blog single-table inheritance to Blog
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/blogs_controller.rb | 7 | ||||
| -rw-r--r-- | app/controllers/entries_controller.rb | 7 | 
2 files changed, 7 insertions, 7 deletions
| diff --git a/app/controllers/blogs_controller.rb b/app/controllers/blogs_controller.rb new file mode 100644 index 0000000..5e72601 --- /dev/null +++ b/app/controllers/blogs_controller.rb | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | class BlogsController < ApplicationController | ||
| 2 | |||
| 3 | def show | ||
| 4 | @blog = Blog.find_by_slug(params[:slug]) | ||
| 5 | end | ||
| 6 | |||
| 7 | end | ||
| diff --git a/app/controllers/entries_controller.rb b/app/controllers/entries_controller.rb deleted file mode 100644 index 14d779a..0000000 --- a/app/controllers/entries_controller.rb +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | class EntriesController < ApplicationController | ||
| 2 | |||
| 3 | def show | ||
| 4 | @entry = Entry.find_by_slug(params[:slug]) | ||
| 5 | end | ||
| 6 | |||
| 7 | end | ||
