Class: BookmarksController

Inherits:
ApplicationController show all
Defined in:
app/controllers/bookmarks_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_navable, #current_navable=, #current_user, #point_navigation_to, #redirect_www_subdomain, #set_locale

Instance Method Details

#createObject



18
19
20
# File 'app/controllers/bookmarks_controller.rb', line 18

def create
  respond_with Bookmark.create( params[ :bookmark ] )
end

#destroyObject



22
23
24
# File 'app/controllers/bookmarks_controller.rb', line 22

def destroy
  respond_with Bookmark.find( params[ :id ] ).destroy
end

#indexObject



9
10
11
12
13
14
15
16
# File 'app/controllers/bookmarks_controller.rb', line 9

def index
#    @stars = find_stars
  respond_with find_bookmarks
#    respond_to do |format|
#      format.json { respond_with @stars }
#      format.html
#    end
end

#showObject



5
6
7
# File 'app/controllers/bookmarks_controller.rb', line 5

def show
  respond_with Bookmark.find( params[ :id ] )
end