简体   繁体   English

如何在Ruby on Rails中将HTML站点链接到任何站点

[英]How to link from html site to any site in view in Ruby on Rails

I have got my main page in project_name/public/index.html. 我的主页位于project_name / public / index.html。 I want to link from index.html site to controller view located in project_name/app/views/my_controller 我想从index.html站点链接到位于project_name / app / views / my_controller中的控制器视图

How can I recive that? 我该如何接受?

您只需要使用a ref链接

<a ref="/my_controller">Link Text</a>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM