Module: DogEars::ViewHelpers

Defined in:
lib/dog_ears/rails/helper.rb

Instance Method Summary collapse

Instance Method Details

#dog_ears(bookmark_url) ⇒ Object



3
4
5
6
7
# File 'lib/dog_ears/rails/helper.rb', line 3

def dog_ears(bookmark_url)
  raise "give the path for dog_ears" unless bookmark_url.present?
  b = DogEars::Bookmark.for_user_and_path(current_user, request.env['PATH_INFO'])
  render partial: '/dog_ears/dog_ears', locals: { bookmark_url: bookmark_url, b: b }
end