Class: BookmarksController
Instance Method Summary
collapse
#current_navable, #current_navable=, #current_user, #point_navigation_to, #redirect_www_subdomain, #set_locale
Instance Method Details
#create ⇒ Object
18
19
20
|
# File 'app/controllers/bookmarks_controller.rb', line 18
def create
respond_with Bookmark.create( params[ :bookmark ] )
end
|
#destroy ⇒ Object
22
23
24
|
# File 'app/controllers/bookmarks_controller.rb', line 22
def destroy
respond_with Bookmark.find( params[ :id ] ).destroy
end
|
#index ⇒ Object
9
10
11
12
13
14
15
16
|
# File 'app/controllers/bookmarks_controller.rb', line 9
def index
respond_with find_bookmarks
end
|
#show ⇒ Object
5
6
7
|
# File 'app/controllers/bookmarks_controller.rb', line 5
def show
respond_with Bookmark.find( params[ :id ] )
end
|