0
@@ -223,53 +223,6 @@ To share views, just create templates and partials in the plugin's <tt>app/views
0
== Customize / extend behavior in each installation
0
-<<<<<<< HEAD:README.rdoc
0
-This line connects your routes to the app. The only difference between your plugin's
0
-routes file and the standard config/routes.rb file is that you don't need to write "map" - it's implicit.
0
-in config/routes.rb becomes just
0
-in my_app/config/routes.rb. All standard routing methods are available, such as:
0
- namespace :admin do |admin|
0
- admin.resources :posts
0
-Desert uses a separate table to manage migration version to maintain backwards compatibility with Rails 1.x.
0
-Your plugin app's migration live in your_plugin/db/migrate. To run migrations, follow these steps:
0
-* Create a new migration in your main app
0
- script/generate migration migrate_my_plugin_to_045
0
-* Add the custom `migrate_plugin` method
0
- class MigrateMyPluginTo045 < ActiveRecord::Migration
0
- migrate_plugin(:my_plugin, 20080530223548)
0
- migrate_plugin(:my_plugin, 0)
0
-* Run your migrations normally
0
->>>>>>> Merge branch 'master' of git://github.com/zilkey/desert:README.rdoc
0
Say you want to create a plugin named acts_as_spiffy.
0
Desert allows Spiffy to have a set of features that can be reused and extended in several projects.
0
@@ -319,7 +272,6 @@ test/specs for all installed plugins, which may not be what you want.
0
== Running Desert Specs
0
To run specs, you need to:
0
-<<<<<<< HEAD:README.rdoc
0
* Make sure you have the necessary gems installed (rr, rspec)
0
* Install git http://git.or.cz/
0
@@ -327,34 +279,17 @@ To run specs, you need to:
0
* Update the database.yml file in <tt>spec/rails_root/config/database.yml</tt>
0
* Install the dependencies
0
->>>>>>> Merge branch 'master' of git://github.com/zilkey/desert:README.rdoc
0
-* Make sure you have the necessary gems installed (rr, rspec)
0
-* Install git http://git.or.cz/
0
-* Create a database named desert_test
0
-* Update the database.yml file in `spec/rails_root/config/database.yml`
0
-* Install the dependencies
0
Desert is a library that heavily monkey patches Rails. To ensure that Desert works with
0
multiple versions of Rails, its tests are run against the supported versions of Rails.
0
-<<<<<<< HEAD:README.rdoc
0
To set up the different supported versions of Rails, run
0
-To set up the different supported versions of Rails, run
0
->>>>>>> Merge branch 'master' of git://github.com/zilkey/desert:README.rdoc
0
rake install_dependencies
0
This will clone the Rails git repo and export the supported versions of rails into the
0
respective directories.
0
-<<<<<<< HEAD:README.rdoc
0
rake update_dependencies
0
- rake update_dependencies
0
->>>>>>> Merge branch 'master' of git://github.com/zilkey/desert:README.rdoc
0
will update the clones repo on your machine.
Comments
No one has commented yet.