add new function
This commit is contained in:
parent
fd3fa19573
commit
bf4c75fcdc
|
@ -10,6 +10,12 @@ class DesktopPublicationsController< ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def journal_p_add
|
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
|
render "desktop/journal_pages/add", :layout => false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -67,7 +73,9 @@ class DesktopPublicationsController< ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def getjournals
|
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
|
sort_publications= Hash.new
|
||||||
data = Array.new
|
data = Array.new
|
||||||
|
|
Reference in New Issue