add new function

This commit is contained in:
Rueshyna 2012-11-16 01:53:45 +08:00
parent 27ed7c74dd
commit bf5a48ef4c
1 changed files with 9 additions and 1 deletions

View File

@ -10,6 +10,12 @@ class DesktopPublicationsController< ApplicationController
end
def journal_p_add
@writing_journal = WritingJournal.new
# respond_to do |format|
# format.html # new.html.erb
# format.xml { render :xml => @writing_journal }
# end
render "desktop/journal_pages/add", :layout => false
end
@ -67,7 +73,9 @@ class DesktopPublicationsController< ApplicationController
end
def getjournals
publications = WritingJournal.where(:create_user_id => current_user.id)
publications = WritingJournal.where(create_user_id: current_user.id)
p current_user.id
p "======="
sort_publications= Hash.new
data = Array.new