Orbit/app/controllers/desktop_publications_contro...

60 lines
1.2 KiB
Ruby
Raw Normal View History

2012-11-15 14:39:01 +00:00
require 'mime/types'
class DesktopPublicationsController< ApplicationController
2013-01-08 10:12:28 +00:00
#def journal_p
# render "desktop/journal_p", :layout => false
#end
def books
render "desktop/books", :layout => false
end
2012-07-04 11:12:02 +00:00
def books_list
render "desktop/books/list", :layout => false
end
def books_add
render "desktop/books/add", :layout => false
end
def seminar_p
render "desktop/seminar_p", :layout => false
end
def seminar_p_list
render "desktop/seminar_pages/list", :layout => false
end
2012-07-04 11:12:02 +00:00
def seminar_p_add
render "desktop/seminar_pages/add", :layout => false
end
2012-11-19 04:07:24 +00:00
# def create_journal
# Journal.create(user_id: current_user.id, title: "Ice Cream Sandwich")
# b = Array.new
# b << {"success"=>"true"}
# render :json=>b.to_json
# end
#
#
# def delete_journal
# @journals = Journal.find("")
# @journals.delete
# b = Array.new
# b << {"success"=>"true"}
# render :json=>b.to_json
# end
#
# def update_journal
# @journal = Journal.find("4ff2d6ebbd98eb02b9000017")
# @papers = @journal.papers
# @papers.each do |paper|
# paper.update_attributes(:user_id => current_user.id)
# end
# b = Array.new
#
# b << {"success"=>"true"}
# render :json=>b.to_json
# end
end