文件名称:Rails-APIs:Rails API演示http谓词的工作原理,使用devise gem进行身份验证,考拉FB身份验证,使用kaminari gem进行分页等
文件大小:137KB
文件格式:ZIP
更新时间:2024-06-11 21:15:47
ruby rails api kaminari ruby-gem
自述文件 添加Kaminari进行分页 分页的一些基本查询 # get records according to pages Post . page ( page_no ) # default limit is 11 and offset is 25 post = Post . page ( 2 ) . per ( 5 ) # per is used for set per page counts of posts Post . count # it will show the total count of posts post . total_count # it will show the total count of posts post . total_pages # it will show the total pages of posts post . next_pag
【文件预览】:
Rails-APIs-master
----log()
--------.keep(0B)
----bin()
--------rake(213B)
--------setup(1008B)
--------spring(507B)
--------rails(264B)
--------bundle(3KB)
----vendor()
--------.keep(0B)
----config()
--------locales()
--------database.yml(2KB)
--------initializers()
--------puma.rb(2KB)
--------application.rb(1KB)
--------koala.rb(128B)
--------routes.rb(476B)
--------credentials.yml.enc(464B)
--------boot.rb(207B)
--------storage.yml(1KB)
--------spring.rb(97B)
--------cable.yml(188B)
--------environment.rb(128B)
--------environments()
----db()
--------seeds.rb(745B)
--------migrate()
--------schema.rb(2KB)
----Rakefile(227B)
----test()
--------models()
--------test_helper.rb(386B)
--------controllers()
--------mailers()
--------integration()
--------fixtures()
--------channels()
----app()
--------uploaders()
--------models()
--------jobs()
--------controllers()
--------views()
--------mailers()
--------channels()
----storage()
--------.keep(0B)
----Gemfile(2KB)
----Gemfile.lock(6KB)
----tmp()
--------.keep(0B)
----.ruby-version(6B)
----.gitignore(574B)
----lib()
--------tasks()
----public()
--------uploads()
--------robots.txt(99B)
----README.md(737B)
----config.ru(130B)