From 4ac0f1901111f94bda46384aa00204dbaa103df1 Mon Sep 17 00:00:00 2001 From: Rueshyna Date: Tue, 26 Feb 2013 15:15:09 +0800 Subject: [PATCH] generate journal page by rails side and fixed model name bug --- app/views/desktop/index.html.erb | 2 +- .../desktop/journal_p_controller.rb | 5 -- .../desktop/journal_pages_controller.rb | 42 +++-------- .../desktop/journal_windows_controller.rb | 5 ++ .../app/helpers/panel/.gitkeep | 0 .../desktop/journal_pages_helper.rb | 74 +++++++++++++++++++ .../app/models/writing_journal.rb | 4 +- .../desktop/journal_pages/_form.html.erb | 2 +- .../desktop/journal_pages/index.html.erb | 14 ++-- ...nal_p.html.erb => journal_window.html.erb} | 0 .../personal_journal/config/routes.rb | 2 +- 11 files changed, 102 insertions(+), 48 deletions(-) delete mode 100644 vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/desktop/journal_p_controller.rb create mode 100644 vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/desktop/journal_windows_controller.rb create mode 100644 vendor/built_in_modules/personal_journal/app/helpers/panel/.gitkeep create mode 100644 vendor/built_in_modules/personal_journal/app/helpers/panel/personal_journal/desktop/journal_pages_helper.rb rename vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/desktop/{journal_p.html.erb => journal_window.html.erb} (100%) diff --git a/app/views/desktop/index.html.erb b/app/views/desktop/index.html.erb index 57f205a65..c61aec8e2 100644 --- a/app/views/desktop/index.html.erb +++ b/app/views/desktop/index.html.erb @@ -11,7 +11,7 @@
  • Publication