Project

fast_ext

0.0
No commit activity in last 3 years
No release in over 3 years
FastExt is a framework for creating enterprise-level application style interfaces. FastExt is released as a Ruby Gem. The gem is to be installed within a Ruby on Rails 3 application.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

FastExt

FastExt is a Ajax Ruby framework for Rapid Development enterprise-level Web application style interfaces. In FastExt you only have to write the domain classes in plain Ruby to get a web application ready for production.

This project rocks and uses MIT-LICENSE.

Configuration

For example, the syntax for view like this: By default your view is configured in the file config/initializers/fast_ext_config.rb.

  FastExt::View.instance.config do |conf|
    conf.win :m_list, title: '数据字典', window_kind: 'maintain' do |w|
      w.tab :m_list, title: '枚举', entity:'FastExt::MList', members:[
        {name:'id', title: 'ID', datatype:'VInteger', readonly: true},
        {name:'title', title: '标题', datatype:'VString'},
        {name:'print_text', title: '打印文本', datatype:'VText'},
        {name:'name', title: '标识', datatype:'VString'},
        {name: 'entity_kind', title: '实体种类', datatype: 'VRadio'},
        {name: 'seq', title: '排序', datatype: 'VInteger'},
        {name: 'is_active', title: '是否激活', datatype: 'VBool'},
        {name: 'note', title: '备注', datatype: 'VText'},
        {name: 'help', title: '帮助', datatype: 'VHtml', display: 'form'}
      ]
      w.tab :m_list_item, title:'枚举项', entity:'FastExt::MListItem', included_tab: 'm_list', members:[
        {name:'id', title: 'ID', datatype:'VInteger', readonly: true},
        {name:'title', title: '标题', datatype:'VString'},
        {name:'print_text', title: '打印文本', datatype:'VString'},
        {name:'name', title: '标识', datatype:'VText'}
      ]
    end
  end

Getting Started

FastExt is released as a Ruby Gem. The gem is to be installed within a Ruby on Rails 4 application. To install, simply add the following to your Gemfile:

gem 'fast_ext'

After updating your bundle, run the installer

  $> rails generate fast_ext:install -s
  $> rake db:migrate
  $> rails generate fast_ext:init
  $> rails server

Visit http://localhost:3000/fast_ext and log in using:

Voila! You're on your brand new FastExt main window.

This project rocks and uses MIT-LICENSE.