- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2020-09-14T04:53:33+00:00","default:src128","src128")
&tag(Ransack/ransack_demo);
*目次 [#s42bb5b1]
#contents
*関連ページ [#kc25c4f3]
*参考情報 [#n2ca4933]
*デモアプリ [#v575f690]
**ransack_demo [#f2c86b7b]
[[ernie/ransack_demo:https://github.com/ernie/ransack_demo]]と、それを解説した[[#370 Ransack - RailsCasts:http://railscasts.com/episodes/370-ransack?language=ja&view=asciicast]]が参考になる。
***セットアップ [#b9902986]
-git clone
git clone https://github.com/ernie/ransack_demo
-bundle install
bundle install --path vendor/bundle
-データベース作成(postgresqlが必要。[[MacPorts/postgresql]]。ransack_demoユーザーを作成しておく)
bundle exec rake db:create:all
-テーブル作成
bundle exec rake db:migrate
-テストデータ投入
bundle exec rake db:fixtures:load
-サーバー実行
bundle exec rails s
-ブラウザから http://localhost:3000 にアクセス