没有合适的资源?快使用搜索试试~ 我知道了~
high_voltage:轻松在Rails应用程序中包含静态页面
共69个文件
rb:33个
erb:18个
gemfile:5个
需积分: 5 0 下载量 30 浏览量
2021-03-31
19:44:27
上传
评论
收藏 39KB ZIP 举报
温馨提示
高压 静态页面的Rails引擎。 ... 但小心点。 静态页面? 是的,例如“关于我们”,“路线”,营销页面等。 安装 有两种安装高压的方法。 您可以运行: $ gem install high_voltage 或者,您可以在您的Gemfile中添加: gem 'high_voltage' , '~> 3.1' 用法 编写您的静态页面,并将其放在RAILS_ROOT / app / views / pages目录中。 $ mkdir app/views/pages $ touch app/views/pages/about.html.erb 在其中放置一些有趣的内容之后,您可以使用以下方法从应用程序中的任何位置链接到该对象: <%= link_to 'About' , page_path ( 'about' ) %> 您可以将页面嵌套在目录结构中,如果从URL角度看这对
资源推荐
资源详情
资源评论
收起资源包目录
high_voltage-master.zip (69个子文件)
high_voltage-master
.gitignore 76B
app
controllers
high_voltage
pages_controller.rb 97B
concerns
high_voltage
static_page.rb 807B
high_voltage.gemspec 1KB
gemfiles
rails_5.2.gemfile 175B
rails_5.1.gemfile 175B
rails_6.0.gemfile 183B
rails_5.0.gemfile 175B
bin
setup 263B
.travis.yml 417B
CONTRIBUTING.md 1KB
CHANGELOG.md 4KB
spec
fake_app.rb 465B
routing
routes_spec.rb 3KB
high_voltage
page_finder_spec.rb 3KB
page_collector_spec.rb 976B
configuration_spec.rb 952B
page_spec.rb 1KB
integration
navigation_spec.rb 143B
support
app
controllers
alternative_finder_controller.rb 307B
subclassed_pages_controller.rb 88B
constraints
root_route_spec.rb 703B
minimal_spec_helper.rb 122B
requests
home_page_spec.rb 300B
high_voltage_spec.rb 235B
spec_helper.rb 800B
controllers
subclassed_pages_controller_spec.rb 1KB
pages_controller_spec.rb 4KB
alternative_finder_controller_spec.rb 274B
features
current_page_helper_spec.rb 226B
view_page_spec.rb 163B
fixtures
app
views
other
wrong.html.erb 24B
other_pages
also_exists_but_references_nonexistent_partial.html.erb 48B
also_dir
also_nested.html.erb 39B
also_exists.html.erb 21B
layouts
alternate.html.erb 217B
application.html.erb 198B
pages
also_exists_but_references_nonexistent_partial.html.erb 48B
_partial.html.erb 8B
also_dir
also_nested.html.erb 39B
dir
nested.html.erb 39B
rot13.html.erb 12B
current_page_helper.html.erb 43B
text.txt.erb 10B
about.html.erb 18B
exists.html.erb 21B
exists_without_html_extension.erb 39B
exists_but_references_nonexistent_partial.html.erb 48B
also_exists.html.erb 21B
public
pages
exists.html 0B
config
database.yml 48B
routes.rb 192B
README.md 9KB
config
routes.rb 280B
lib
high_voltage.rb 503B
high_voltage
page_finder.rb 936B
page_collector.rb 396B
constraints
root_route.rb 688B
engine.rb 385B
configuration.rb 718B
route_drawers
default.rb 414B
root.rb 456B
version.rb 50B
page.rb 909B
Appraisals 472B
Gemfile 39B
MIT-LICENSE 1KB
Rakefile 414B
Gemfile.lock 3KB
共 69 条
- 1
资源评论
逸格草草
- 粉丝: 28
- 资源: 4594
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功