Skip to content

Fork chosen rails with specific repository of chosen

Paul Morganthall edited this page Sep 24, 2013 · 5 revisions

You can fork chosen-rails and replace the assets in vendor folder by following steps:

  1. select a specific chosen repository and a branch (optional), ex: https://github.com/koenpunt/chosen, branch: option_adding
  2. fork chosen-rails in GitHub, and pull to you local box.
  3. build develop environment for your forked chosen-rails
cd chosen-rails
bundle install
  1. run update task to update assets from desired chosen repository and (optional) branch.
rake update-chosen[https://github.com/koenpunt/chosen,option_adding]
  1. push your forked chosen-rails repository
git add .
git commit -m 'change chosen repository'
git push
  1. use your own chosen-rails in rails project. edit your Gemfile of rails project.
gem 'chosen-rails', git: 'https://github.com/xxxxxx/chosen-rails.git'

That's all.

Clone this wiki locally