add new function
This commit is contained in:
parent
27ed7c74dd
commit
bf5a48ef4c
|
@ -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
|
||||
|
|
Reference in New Issue