active_form_model

时间:2021-05-25 19:00:36
【文件属性】:
文件名称:active_form_model
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-25 19:00:36
Ruby ActiveForm模型 ActiveRecord的无痛表格。 基于继承。 包括: 强大的参数 验证(基于模型验证) 数据归一化 安装 将此行添加到您的应用程序的Gemfile中: gem 'active_form_model' 然后执行: $ bundle install 或将其自己安装为: $ gem install active_form_model 用法 创建目录应用程序/表单 为模型添加Form类 在课程内添加允许的参数 将其用作普通模型(无strong_params) 发电机 使用提供的生成器生成表单: $ rails g active_form_model:form sign_up --model=user 或使用命名空间模型 $ rails g active_form_model:form admin_post --model=blog/post
【文件预览】:
active_form_model-master
----.gitignore(86B)
----Makefile(123B)
----bin()
--------setup(131B)
--------console(352B)
----CODE_OF_CONDUCT.md(3KB)
----LICENSE.txt(1KB)
----.github()
--------workflows()
----active_form_model.gemspec(1KB)
----README.md(3KB)
----lib()
--------active_form_model()
--------generators()
--------active_form_model.rb(1KB)
----Gemfile(150B)
----Rakefile(198B)
----test()
--------active_form_model_test.rb(2KB)
--------test_helper.rb(333B)

网友评论