extjs / mvc Goto Github PK
View Code? Open in Web Editor NEWRuby ExtJS Tools
Home Page: http://www.extonrails.com
License: MIT License
Ruby ExtJS Tools
Home Page: http://www.extonrails.com
License: MIT License
Just tried to use extjs-mvc gem and i found it really helpful. But I am missing mapping support for JsonStore which I think is needed to correctly handle associations. My idea is to alter extjs_fields call so it can handle nested columns, something like this:
extjs_fields :id, :foo, :bar => [:bar_field_1, :bar_field_2]
Another possibility which came to my mind is to have multiple configurations like this:
extjs_fields :simple_config, :include => :id, :name
extjs_fields :complex_config, :include => :id, :foo, :bar => [:bar_field_1, :bar_field_2]
This will not probably be backwards-compatible but can be useful when loading data depending on security setting/UI component/etc.
I believe I can handle this on my own but I would like have this "approved" for inclusion before coding :-)
At the method announcement the exception is always thrown out:
NoMethodError: undefined method `extjs_fieldset'.
Always at use extjs_fields
Problem is obviously in extjs/data/store.rb, line 116, instead of
proxy["url"] = "/#{@controller.controller_name}.#{@format.to_s}"
there should be
proxy["url"] = "/#{@controller.controller_path}.#{@format.to_s}"
Something like this will break:
belongs_to :created_by, :class_name => 'User', :foreign_key => :created_by_user_id
I fixed it by changing code on lib/model/active_record.rb:63 to
:foreign_key => assn.options[:foreign_key] || assn.association_foreign_key
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.