clean route table about desktop

This commit is contained in:
Rueshyna authored and chris committed 2012-12-06 07:59:42 +08:00
1 parent 6c33d353ba
commit 4ae7ac8388
4 files changed
+4 -25

No files matched your search

@@ -8,15 +8,6 @@ class Desktop::CoAuthorsController < ApplicationController
end
end
def show
@co_author = CoAuthor.find(params[:id])
respond_to do |format|
format.html { redirect_to desktop_co_authors_url, :layout => false }
format.json { render json: @co_author }
end
end
def new
@co_author = CoAuthor.new
@co_author_relations = CoAuthorRelation.all
@@ -1,5 +1,4 @@
class Desktop::JournalListsController < ApplicationController
def index
level_types = JournalLevelType.all
all_journal_lists = WritingJournal.where(create_user_id: current_user.id)
@@ -1,6 +1,4 @@
class Desktop::JournalPagesController < ApplicationController
#before_filter :check_for_cancel, :only => [:create, :update]
def index
@writing_journal = WritingJournal.where(create_user_id: current_user.id)
@level_types = JournalLevelType.all
@@ -10,9 +8,6 @@ class Desktop::JournalPagesController < ApplicationController
end
end
def show
end
def new
@writing_journal = WritingJournal.new
@level_types = JournalLevelType.all
@@ -109,10 +104,4 @@ class Desktop::JournalPagesController < ApplicationController
render json: JSON.pretty_generate(data)
end
private
def check_for_cancel
if params[:commit] == "Cancel"
end
end
end