1. #1
    Ext JS Premium Member
    Join Date
    Oct 2010
    Location
    UK
    Posts
    56
    Vote Rating
    0
    jmls is on a distinguished road

      0  

    Default Ruby on Rails 3 and ExtJS 4

    Ruby on Rails 3 and ExtJS 4


    With all of the enhancements made in ExtJS 4, has there been any work done on integration with RoR 3 ? It would seem to be a perfect match, esp with the mvc architecture in ExtJS 4.

    Does anyone have any links or tutorials on working with RoR 3 and ExtJS 4?

    Thanks

  2. #2
    Sencha User bt_bruno's Avatar
    Join Date
    Mar 2008
    Location
    Redwood City, CA
    Posts
    154
    Vote Rating
    10
    bt_bruno will become famous soon enough

      0  

    Default


    Hummm...I'm also curious about what the big guys are doing with Ext 4 and RoR... Maybe they could point us some path!

  3. #3
    Ext JS Premium Member christocracy's Avatar
    Join Date
    Oct 2006
    Location
    Montreal
    Posts
    381
    Vote Rating
    0
    christocracy is on a distinguished road

      0  

    Default I have in the past

    I have in the past


    I've done a fair bit of stuff with RoR and ExtJS in the past.

    I wrote a gem for auto-generating data-models for ExtJS 3
    https://rubygems.org/gems/whorm
    https://github.com/christocracy/whorm

    I hadn't used it in a while but tried firing it up with a Sinatra/DataMapper project I'm working on. It has adapters for DataMapper, ActiveRecord and MongoMapper.

    The gem will reflect upon your ORM's properties and associations and render an Ext-compatible model.

    It wouldn't take much work to have it auto-generate Ext4 data-models. I'll see about dusting it off and upgrading it.
    /**
    * @author Chris Scott
    * @business www.transistorsoft.com
    * @rate $150USD / hr; training $500USD / day / developer (5 dev min)
    *
    * @SenchaDevs http://senchadevs.com/developers/transistor-software
    * @twitter http://twitter.com/#!/christocracy
    * @github https://github.com/christocracy
    */

  4. #4
    Ext JS Premium Member christocracy's Avatar
    Join Date
    Oct 2006
    Location
    Montreal
    Posts
    381
    Vote Rating
    0
    christocracy is on a distinguished road

      0  

    Default Renamed gem

    Renamed gem


    I renamed the gem quoted above, "whorm" to "sencha-model". It needs a bit of work to render ExtJS4 models but should be fun.

    https://rubygems.org/gems/sencha-model

    See link to "source code" hosted on Github.
    /**
    * @author Chris Scott
    * @business www.transistorsoft.com
    * @rate $150USD / hr; training $500USD / day / developer (5 dev min)
    *
    * @SenchaDevs http://senchadevs.com/developers/transistor-software
    * @twitter http://twitter.com/#!/christocracy
    * @github https://github.com/christocracy
    */

  5. #5
    Sencha User bt_bruno's Avatar
    Join Date
    Mar 2008
    Location
    Redwood City, CA
    Posts
    154
    Vote Rating
    10
    bt_bruno will become famous soon enough

      0  

    Question Folder Structure /app for server /public/app for ext?

    Folder Structure /app for server /public/app for ext?


    Does anyone blended Rails and Ext 4.0 folder structure? Rails creates a /app folder for its code, and /public for client-side code.

    I'm putting all Ext JS folder structure under /public, creating then /public/app, /public/extjs etc... but it feels so wrong...

    - rails_project
    - app
    - ...
    - public
    - app
    - extjs
    - ...
    Maybe someone could share some thoughts, tell me how you're dealing with it.

  6. #6
    Sencha User
    Join Date
    Sep 2010
    Posts
    13
    Vote Rating
    0
    kayakyakr is on a distinguished road

      0  

    Default


    bt_bruno: we haven't finished the ext4 migration (since our project is pretty huge and the differences between 3 and 4 are significant), but you can use:

    Code:
      Ext.Loader.setPath('App', '/assets')
      Ext.Loader.setPath('Ext', '/assets/ext/src')
    At which point you can use Rails 3.1's javascripts assets a bit more naturally.
    Last edited by kayakyakr; 27 Jan 2012 at 7:59 AM. Reason: clearing up routes

  7. #7
    Sencha Premium Member
    Join Date
    Nov 2007
    Posts
    79
    Vote Rating
    4
    oldroy is on a distinguished road

      0  

    Default Another option

    Another option


    Hello,

    Set loader as above for "Ext".

    Don't set the loader for app. Use appFolder: "/assets/MyApp/" if your app resides in /assets/javascripts/MyApp/

    MVC system uses appFolder setting to find itself at run time. This works, however you can't set appfolder in architect if that is how you are writing your app. Architect will set up a whole new set of folders at assets/javascripts/MyApp/assets/MyApp if you use the setting. Just leave it blank in architect and add it with another editor.

  8. #8
    Sencha User
    Join Date
    Mar 2011
    Location
    Betelgeuse VII
    Posts
    86
    Vote Rating
    3
    fordprefect is on a distinguished road

      0  

    Default


    I haven't used this framework before but it looks promising: http://netzke.org/

  9. #9
    Sencha User hexawing's Avatar
    Join Date
    Nov 2009
    Posts
    73
    Vote Rating
    0
    hexawing is on a distinguished road

      0  

    Default


    Quote Originally Posted by fordprefect View Post
    I haven't used this framework before but it looks promising: http://netzke.org/
    But it seems like only support ExtJS 3.x instead of 4.x...

Similar Threads

  1. extjs ruby on rails
    By olvap in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 23 Jul 2009, 5:50 AM
  2. rwt (a ruby on rails plugin for extjs)
    By twr in forum Community Discussion
    Replies: 1
    Last Post: 12 Feb 2009, 2:28 AM
  3. GridPanel + Ruby on Rails
    By danielbertini in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 15 Oct 2007, 6:25 PM
  4. Json with Ruby on Rails
    By sfwalter in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 16 Sep 2007, 7:57 PM

Thread Participants: 6

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi