Sha256: d519cd3ade6e337415cd355bab30af24064fcef7d625c2c331d1ac8ed15b1863
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
Reviews ======= Straightforward review/rating functionality. Installation ------------ Add the following to your `Gemfile` to install from git: ```ruby gem 'jiffyshirts_spree_review' ``` Now bundle up with: bundle Next, run the rake task that copies the necessary migrations and assets to your project: rails g jiffyshirts_spree_reviews:install And finish with a migrate: rake db:migrate Now you should be able to boot up your server with: rails s That's all! Usage ----- Action "submit" in "reviews" controller - goes to review entry form Users must be logged in to submit a review Three partials: - `app/views/spree/products/_rating.html.erb` -- display number of stars - `app/views/spree/products/_shortrating.html.erb` -- shorter version of above - `app/views/spree/products/_review.html.erb` -- display a single review Administrator can edit and/or approve and/or delete reviews. Implementation -------------- Reviews table is quite obvious - and note the "approved" flag which is for the administrator to update. Ratings table holds current fractional value - avoids frequent recalc...
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jiffyshirts_spree_reviews-2.3.1.2 | README.md |
jiffyshirts_spree_reviews-2.3.1.1 | README.md |