DogEars¶ ↑
Gem for generic in-app-bookmarks and bookmark-sharing between users. Slightly WIP.
Gemfile¶ ↑
<pre>
gem 'dog_ears'
</pre>
routes.rb¶ ↑
Add dog_ears
in the appropriate place
controller¶ ↑
Add a BookmarksController at the appropriate place. This needs to inherit fro your apps controllers, such that current_user
is available:
<pre>
class Admin::...::BookmarksController < Admin::...::ApplicationController include DogEars::Controller end
</pre>
views/layout¶ ↑
In you layout, use <%= dog_ears admin_..._bookmarks_path %>
to inject the required html-code
stylesheets/javascript¶ ↑
//= require dog_ears/application
as usual :)
Migrations¶ ↑
rake dog_ears:install:migrations
and then
rake db:migrate
License¶ ↑
This project rocks and uses MIT-LICENSE.
Copyright © 2013-2014 by Peter Horn, metaminded UG