Ajax Ratings, Devise, CSS

https://github.com/sid137/charles_items_3
http://rubygems.org/downloads/ajaxful_rating-3.0.0.beta3.gem


$ rvm use ruby192@rails3

$ gem install -l --no-ri --no-rdoc ajaxful_rating-3.0.0.beta3.gem

Gemfile
gem 'inherited_resources'
gem "acts_as_list"
gem "ajaxful_rating"
gem "best_in_place"

# bundle install

-- Add/modify columns
alter table ITEMS add RATING NUMBER(38);
alter table ITEMS add USER_ID NUMBER(38);
alter table ITEMS add position NUMBER(38);

app\models\item.rb
app\models\user.rb
app\controllers\application_controller.rb
  include InheritedResources::DSL
app\controllers\rating_controller.rb
app\controllers\items_controller.rb
app\views\items
app\views\rating
app\views\layouts\rating.html.haml
app\views\layouts\_head.html.haml
app\views\layouts\_flashes.html.haml
app\views\layouts\_google_analytics.html.erb
public\javascripts\rating
  application.js
public\stylesheets\rating
  main.css
public\images\jquery.ui.stars.gif
public\images\add.png

config\routes.rb
  resources :users do
    resources :items do
    end
  end

你可能感兴趣的:(Ajax)