flash_render:为ActionController添加了Flash支持

时间:2021-05-16 02:06:25
【文件属性】:
文件名称:flash_render:为ActionController添加了Flash支持
文件大小:100KB
文件格式:ZIP
更新时间:2021-05-16 02:06:25
Ruby FlashRender 允许您使用render :new, :alert => 'You messed up' ,就像您可以使用redirect_to thang, :notice => 'You made thang successfully' 。 与:notice , :alert和:flash => {:message => 'Sup foo'} ,就像redirect_to一样。 通过渲染,它设置了flash.now而不是flash 。 谷歌搜索此功能后得到启发,它完全由神秘的PBF编写,并由我打包成宝石。 请参阅: :
【文件预览】:
flash_render-master
----flash_render.gemspec(1023B)
----.gitignore(113B)
----test()
--------dummy()
--------flash_render_test.rb(1KB)
--------test_helper.rb(247B)
----Gemfile(112B)
----README.textile(510B)
----lib()
--------flash_render.rb(806B)
--------flash_render()
----Rakefile(242B)

网友评论