personal-book/app/controllers/desktop/personal_books_controller.bak

23 lines
390 B
Plaintext
Raw Permalink Normal View History

2015-01-14 03:57:27 +00:00
class Desktop::PersonalBooksController < DesktopAdminController
2015-01-09 08:49:04 +00:00
include Admin::PersonalBooksHelper
2014-12-05 06:37:24 +00:00
def menu
user = OrbitHelper.current_user
[
{
"title" => "List",
"layout" => "list"
},
{
"title" => "Add/Edit",
"layout" => "form",
2015-01-14 03:57:27 +00:00
"new_path" => "/admin/members/#{user.member_profile.to_param}/books/new"
2014-12-05 06:37:24 +00:00
}
]
end
def list
get_paper_list
end
end