will_paginate_endless_scroll_example:如何使用 will_paginate gem 创建无限

  • p2_723838
    了解作者
  • 39.4KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-06 05:39
    上传日期
will_paginate 带无限滚动示例应用程序 使用gem 'will_paginate', '~> 3.0.7'实现无限/无限滚动的工作 Rails CRUD 应用程序示例。 gem 'faker'被用来为项目gem 'faker'虚假数据。 演示 现场演示: : 在本地开发中安装 克隆回购: git clone git@github.com:KelseyDH/will_paginate_endless_scroll_example.git cd will_paginate_endless_scroll_example 安装依赖: bundle install 迁移和种子数据库: bundle exec rake db:migrate db:seed 就是这样,它准备好了。 跑步: 像普通的 rails 应用程序一样运行: rails s 然后访问 贡献 欢
will_paginate_endless_scroll_example-master.zip
内容介绍
# will_paginate w/ endless scroll example app Example of a working Rails CRUD app using <tt>gem 'will_paginate', '~> 3.0.7'</tt> to implement endless/infinite scrolling. The ```gem 'faker' ``` was used to seed the project with fake data. ## Demo - Live demo: [https://will-paginate-endless-scroll.herokuapp.com](https://will-paginate-endless-scroll.herokuapp.com) ## To Install in Local Development Clone the repo: ``` git clone git@github.com:KelseyDH/will_paginate_endless_scroll_example.git ``` ``` cd will_paginate_endless_scroll_example ``` Install dependencies: ``` bundle install ``` Migrate & Seed database: ```bundle exec rake db:migrate db:seed``` That's it, it's ready to go. ## To Run: Run like a normal rails app: ```rails s``` Then visit http://localhost:3000/ ## Contribute Contributions are welcome! Just send me a pull-request. ## Credit - Code guide on how endless scrolling was implemented for this app can be found here: [http://richonrails.com/articles/endless-scrolling](http://richonrails.com/articles/endless-scrolling)
评论
    相关推荐