【文件属性】:
文件名称:kebapress:用于 Cybele 初始化 Rails 应用程序的 Rails 博客引擎
文件大小:59KB
文件格式:ZIP
更新时间:2021-07-01 00:32:13
JavaScript
凯巴普莱斯
要求
在将 Kebapress 安装到您的应用程序之前,您需要:
Ruby ~> 2.0
导轨 ~> 4.0
Cybele ~> 1.0.0
将 Kebapress 安装到 Cybele Rails 应用程序
将引擎添加到您的 Gemfile 中:
gem 'kebapress'
捆绑安装:
bundle install
进行安装:
rails g kebapress:install
运行迁移:
rake db:migrate
在 HQ 命名空间下挂载引擎并在 config/routes.rb 文件中添加额外的路由:
namespace :hq do
mount Kebapress :: Engine => '/mount_point' # Example: '/blog'
end
get '/blog/:id' , to : 'kebapres
【文件预览】:
kebapress-develop
----bin()
--------rails(320B)
----config()
--------locales()
--------initializers()
--------routes.rb(233B)
----db()
--------migrate()
----Rakefile(400B)
----test()
--------models()
--------controllers()
--------fixtures()
--------helpers()
----example.haml(785B)
----SECURITY.md(299B)
----app()
--------models()
--------assets()
--------controllers()
--------views()
--------helpers()
----Gemfile(534B)
----Gemfile.lock(2KB)
----kebapress.gemspec(897B)
----.gitignore(30B)
----CHANGELOG.md(8KB)
----lib()
--------tasks()
--------templates()
--------kebapress()
--------generators()
--------kebapress.rb(106B)
----README.md(2KB)
----MIT-LICENSE(1KB)