README.markdown in spud_admin-0.1.0 vs README.markdown in spud_admin-0.2.0
- old
+ new
@@ -6,30 +6,32 @@
Installation/Usage
------------------
1. In your Gemfile add the following
- gem 'spud_admin', :git => "git@github.com:davydotcom/spud_core_admin.git"
+ gem 'spud_admin', :git => "git://github.com/davydotcom/spud_core_admin.git"
2. Run bundle install
3. Copy in database migrations to your new rails project
- bundle exec rake spud_admin:install:migrations
+ bundle exec rake spud_core:install:migrations
rake db:migrate
4. run a rails server instance and point your browser to /spud/admin
+
Adding Your Own Engines
-----------------------
Creating a rails engine that ties into spud admin is fairly straight forward
-In your new engine add spud_admin as a dependency and right after your engine require line call.
+In your new engine add spud_admin as a dependency and create an initializer inside your engine class as such:
- SpudAdmin::Engine.add_admin_application({
- :name => "Media",
- :thumbnail => "spud/admin/media_thumb.png",
- :url => "/spud/admin/media",
- :order => 3})
+ initializer :admin do
+ Spud::Core.configure do |config|
+ config.admin_applications += [{:name => "Pages",:thumbnail => "spud/admin/pages_thumb.png",:url => "/spud/admin/pages",:order => 0}]
+
+ end
+ end
You can use the layouts provided with spud admin by using 'spud/admin/application' or 'spud/admin/detail' layouts
When creating controllers for the admin panel create them in the Spud::Admin Namespace and have them extend Spud::Admin::ApplicationController for automatic user authentication restrictions.