Sha256: ce4f947fc9e1056ecf0fcb97187522c99dd726eed6519f322764436f33bb08ac

Contents?: true

Size: 692 Bytes

Versions: 5

Compression:

Stored size: 692 Bytes

Contents

= Favourite Object
A dropin utility that adds favourites functionality to any rails application. But simpling include a partial you can add a favourite button to any object.


Install: 
```
gem 'favourite_object'
rails g favourite_object:install
rake db:migrate
```

For every object you want to be favouritable
- Generates a favourite_object/#{name.underscore}/message.html.erb file which is used to display the description of an object
```
rails g favourite_object:template ObjectName
```


Favourite button(pass the object to be favourited and the user object)
```
<%= render :partial => 'favourite_object/favourites/favourite_icon', 
	:locals => {:object => object, :owner => @user}%>
```

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
favourite_object-0.1.1 README.rdoc
favourite_object-0.1.0 README.rdoc
favourite_object-0.0.3 README.rdoc
favourite_object-0.0.2 README.rdoc
favourite_object-0.0.1 README.rdoc