Giter Site home page Giter Site logo

mvc's People

Contributors

billm avatar christocracy avatar d--j avatar danielbeardsley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mvc's Issues

Mapping support for extjs_store

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 :-)

0.3.5 does not work with namespaced controllers

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}"

extjs_associations does not count with user-defined foreign_key

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.