Rails + Sencha = Netzke
Upcoming SlideShare
Loading in...5
×
 

Rails + Sencha = Netzke

on

  • 3,575 views

You find the example code here: https://github.com/beffa/netzke_example

You find the example code here: https://github.com/beffa/netzke_example

Statistics

Views

Total Views
3,575
Views on SlideShare
3,574
Embed Views
1

Actions

Likes
1
Downloads
32
Comments
0

1 Embed 1

http://www.slashdocs.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Rails + Sencha = Netzke Rails + Sencha = Netzke Presentation Transcript

  • Rails + Sencha = Netzkeclaudio@beffa.ch 16. Februar 2011 at rubyonrails.ch
  • Dictionary• RIA = Rich Internet Applications• JS = JavaScript• Sencha = Tea & RIA JS framework ExtJS• Netzke = Rails marries Sencha by @nomadcoder
  • Why Sencha?• Best RIA framework (personal oppinion)• Cross platform & consistent architecture• Examples & documentation• Maintained by a company• sencha.com
  • Why Netzke?• Clean Rails-Sencha interface• Pre-fabricated componentents• You dont have to write it yourself• Maintained & documented• Small user group• netzke.org
  • Where?• Relational data structure• Many actions per view• Conservative end userReporting, ERP, accounting, admin backends,desktop / Excel replacement etc.
  • Why Hate It?• Steep learning curve• Mixing server and client side Youll use Firebug a lot...
  • Most Simple Example
  • Start Extjs--> public/extjs famfamfam_silk_icons --> images/ iconsGemfile gem netzke-core application.html.XXX gem netzke-basepack <head>  <%= csrf_meta_tag %>  <%= netzke_init %>routes.rb </head> netzke
  • Finish rails g model Person name:string mail:.. rails g controller Welcome index bundle install rake db:migrate rails sindex.html.XXX<%= netzke :person, :class_name => "Basepack::GridPanel", :model => "Person"%>
  • WAITING FOR THEhttp://localhost:3000/welcome/index
  • rails g model Company name:stringrake db:migratePerson   belongs_to :companyindex.html.XXX<%= netzke :person, :class_name => "Basepack::GridPanel", :model => "Person", :columns => [:name, :mail, :company__name]%><%= netzke :company, :class_name => "Basepack::GridPanel", :model => "Company"%>
  •    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
  • TestingWith Cucumber and Seleniumsee http://bit.ly/gP2gAo
  • Links• blog.writelesscode.com• netzke.org• github.com/skozlov/netzke/wiki• Google Group „Netzke“
  • About me, myself and I:• Ruby & Rails Engineer since 10.10.05• claudio@beffa.ch• @beffa• Book me +41 79 569 97 13