Ruby::Extjs
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'ruby-extjs'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruby-extjs
Usage
Argumentos: [nameApp] [generateTipo] [modulo] [options]
Model
$ ruby-extjs --g MyApp model Contatos id:int contato:string email:string
Controller
$ ruby-extjs --g MyApp controller Contatos ch:id dr:contato cb:true
Store
$ ruby-extjs --g MyApp store Contatos
View
$ ruby-extjs --g MyApp view Contatos id:ch nome:no email:ve telefone:m_fone
App
$ ruby-extjs --g MyApp app
Parametros
1 - nameApp
2 - generateTipo
* app
* controller
* model
* store
* view
3 - modulo ~> Nome da tabela Ex.: Contato
4 - options
* generateTipo => App
* generateTipo => Controller
ch:id dr:nome cb: true
Obs.:
ch -> Chave Primaria
dr -> Ex.: Deseja deletar: record.get('nome')?
cb -> se o modulo tera um storeCombo
* generateTipo => Model
id:int nome:string email:string telefone:string
* generateTipo => Store
* generateTipo => View
id:ch nome:no email:ve telefone:m_fone
Obs.:
key => nome do campo
values =>
no -> sem condincoes
ch -> chave primaria
ve -> valid Email
tp -> campo de senha
r_{modulo} -> combobox {modulo} => tabela referencia
m_{tipo} -> mascara {tipo} => fone,cep,cpf,cnpj,money
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request