RailsAdmin - the right way of doing data administration with Rails 3

  • 11,133 views
Uploaded on

From RubyAndRails Europe 2010

From RubyAndRails Europe 2010

More in: Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
11,133
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
70
Comments
0
Likes
6

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. RailsAdmin The right way of doing data administration RubyAndRails 2010 Bogdan Gaza RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 2. $  whoami Student at Faculty of Computer Science, Iasi, Romania Freelance web developer RubySOC 2010 student bogdan.gaza@info.uaic.ro @hurrycane RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 3. Data administration is ________* SPEAK UP! * talking in the context of a web app RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 4. ...  the  way  you  organize  and  control  your  data RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 5. Data administration means the admin panel. RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 6. HOW? Both  simple,  secure  and  fast RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 7. Most people write custom admin panels. prone  to  errors definitely  NOT  fast not  very  simple RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 8. Other use CMSs usually  secure NOT  fast simple  but  not  flexible RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 9. The Rails way of doing it using a plugin engine. usually  secure fast simple RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 10. And the choices are: RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 11. lipsiaAdmin ExtJS | permissions | Rails 2.x www.lipsiadmin.com RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 12. ActiveScaffold Embed-able | Third-Party-Plugins | Rails 2.x http://www.activescaffold.com/ RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 13. Hobo WebAppBuilder | Permissions | Rails 3.x http://hobocentral.net/ RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 14. Introducing RailsAdmin http://github.com/sferik/rails_admin/ RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 15. RubySOC  2010  Project mentors Erik Michaels-Ober, Yehuda Katz, Rodrigo Rosenfeld Rosas, Luke van der Hoeven and Rein Henrichs. RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 16. Began  as  Erik’s  MerbAdmin   and  then  got  ported  to   Rails  3 RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 17. RailsAdmin  is  a  Rails  Engine RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 18. Basic Engines controllers require 'rails_admin/abstract_model' module RailsAdmin   class ApplicationController < ::ApplicationController   end end RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 19. Basic Engines models module RailsAdmin   class History < ActiveRecord::Base   end end RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 20. Basic Engines routes Rails.application.routes.draw do     # Routes for rails_admin controller     controller "main" do       match "/", :to => :index, :as => "dashboard"       match "/:model_name", :to => :list, :as => "list"       ...     end end For more info checkout the mountable apps RubySOC project. RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 21. RailsAdmin } C Create new R Show U Easily Update Your  Data D Safely Delete Automatic form validation Authentication (using Devise) Multi-column-search Use Action History (per row) RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 22. RailsAdmin  -­‐  simple  to  install Add in your Gemfile gem 'devise' # Devise must be required before RailsAdmin gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git' Run $ bundle update Also run: $ rails generate rails_admin:install_admin RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 23. With  Rails  3.1  Rails  Admin  will  be   mountable.  (Thanks  to  Piotr!) RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 24. Rails.application.routes.draw do mount Admin::Engine => "/admin" end RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 25. DEMO RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 26. Rails  3.1  and  RailsAdmin  1.0  around  the end  of  the  year. RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 27. e? Do vi s hav es it De e au nee hy the ntic d to W QA atio n? Con figur ns atio i ssio n? Perm RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 28. Configuration DSL experimental Thanks to kappa (Petteri Kääpä)! http://gist.github.com/638153 RubyAndRails 2010 @hurrycane Thursday, October 21, 2010
  • 29. Thanks! RubyAndRails 2010 @hurrycane Thursday, October 21, 2010