响应者:一组Rails响应者来耗尽您的应用程序

时间:2021-02-01 03:02:27
【文件属性】:
文件名称:响应者:一组Rails响应者来耗尽您的应用程序
文件大小:44KB
文件格式:ZIP
更新时间:2021-02-01 03:02:27
ruby rails controllers flash-messages RubyRuby 回应者 一组响应器模块,可以耗尽您的Rails应用程序。 安装 将响应者gem添加到您的Gemfile中: gem "responders" 更新软件包并运行安装生成器: $ bundle install $ rails g responders:install 如果您包括此gem以在早期版本的Rails中支持响应者的向后兼容性,则只需包括gem和bundle。 $ bundle install 响应者类型 FlashResponder 根据控制器操作和资源状态设置闪光灯。 例如,如果您对POST请求执行: respond_with(@post) ,并且资源@post不包含错误,则只要您配置I18n文件,它将自动将闪存消息设置为"Post was successfully created" : flash : actions : create : notice : " %{resource_name} was successfully created. " update : notice : " %{reso
【文件预览】:
responders-master
----.gitignore(36B)
----responders.gemspec(825B)
----gemfiles()
--------Gemfile-rails-6-0(151B)
--------Gemfile-rails-5-2(151B)
--------Gemfile-rails-head(173B)
----.rubocop.yml(4KB)
----CHANGELOG.md(4KB)
----.github()
--------workflows()
----README.md(8KB)
----lib()
--------responders()
--------generators()
--------action_controller()
--------responders.rb(1KB)
----Gemfile(211B)
----MIT-LICENSE(1KB)
----Rakefile(661B)
----test()
--------support()
--------responders()
--------views()
--------action_controller()
--------locales()
--------test_helper.rb(2KB)
----Gemfile.lock(2KB)

网友评论