Successfully reported this slideshow.

Rails + Sencha = Netzke

1

Share

Upcoming SlideShare
Rails, ExtJs, and Netzke
Rails, ExtJs, and Netzke
Loading in …3
×
1 of 15
1 of 15

More Related Content

Related Books

Free with a 14 day trial from Scribd

See all

Related Audiobooks

Free with a 14 day trial from Scribd

See all

Rails + Sencha = Netzke

  1. 1. Rails + Sencha = Netzke claudio@beffa.ch 16. Februar 2011 at rubyonrails.ch
  2. 2. Dictionary • RIA = Rich Internet Applications • JS = JavaScript • Sencha = Tea & RIA JS framework ExtJS • Netzke = Rails marries Sencha by @nomadcoder
  3. 3. Why Sencha? • Best RIA framework (personal oppinion) • Cross platform & consistent architecture • Examples & documentation • Maintained by a company • sencha.com
  4. 4. Why Netzke? • Clean Rails-Sencha interface • Pre-fabricated componentents • You don't have to write it yourself • Maintained & documented • Small user group • netzke.org
  5. 5. Where? • Relational data structure • Many actions per view • Conservative end user Reporting, ERP, accounting, admin backends, desktop / Excel replacement etc.
  6. 6. Why Hate It? • Steep learning curve • Mixing server and client side You'll use Firebug a lot...
  7. 7. Most Simple Example
  8. 8. Start Extjs--> public/extjs famfamfam_silk_icons --> images/ icons Gemfile  gem 'netzke-core' application.html.XXX gem 'netzke-basepack' <head>  <%= csrf_meta_tag %>  <%= netzke_init %> routes.rb </head>  netzke
  9. 9. Finish rails g model Person name:string mail:.. rails g controller Welcome index  bundle install  rake db:migrate  rails s index.html.XXX <%= netzke :person, :class_name => "Basepack::GridPanel", :model => "Person" %>
  10. 10. WAITING FOR THE http://localhost:3000/welcome/index
  11. 11. rails g model Company name:string rake db:migrate Person    belongs_to :company index.html.XXX <%= netzke :person, :class_name => "Basepack::GridPanel", :model => "Person", :columns => [:name, :mail, :company__name] %> <%= netzke :company, :class_name => "Basepack::GridPanel", :model => "Company" %>
  12. 12.    class CustomActionGrid < GridPanel       action :show_map, :text => "Show Map"       def default_bbar         [:show_map.action, "-", *super]       end       def default_context_menu         [:show_map.action, "-", *super]       end js_method :on_show_map, <<-JS function(){alert("Map");} JS    end
  13. 13. Testing With Cucumber and Selenium see http://bit.ly/gP2gAo
  14. 14. Links • blog.writelesscode.com • netzke.org • github.com/skozlov/netzke/wiki • Google Group „Netzke“
  15. 15. About me, myself and I: • Ruby & Rails Engineer since 10.10.05 • claudio@beffa.ch • @beffa • Book me +41 79 569 97 13

Editor's Notes

  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • ×