Module: Merb::ExtJS::Direct
- Defined in:
- lib/merb-extjs-direct/mixins/remoting_provider.rb,
lib/merb-extjs-direct.rb
Overview
Meb::ExtJS::Direct::RemotingProvider This is a mixin which provides support Merb support for ExtJS's Ext.Direct mechanism in Ext3.x
Defining and registering the Ext.Direct api
Configuring your Merb Ext.Direct controller
class MyController
include Merb::Ext::Direct::RemotingProvider # <-- include this mixin.
end
By including RemotingProvider mixin, your controller will have added to it a single action called "rpc" with which you can send all you Ext.Direct actions to. Take note of the url specified in the first step.
Merb-parts
Ext.Direct is implemented in Merb by taking advantage of "Parts". The nice thing about parts is that they have both a view (for rendering you Ext controls and api along with a controller for executing your api actions.The Merb RemotingProvider mixin takes advantage of the merb-parts gem.
Ext.Direct router
Defined Under Namespace
Modules: RemotingProvider
Constant Summary collapse
- VERSION =
'0.0.4'