0

I am a newbie to RoR. I have created a new HTML5 page and want to integrate this into an existing RoR application. I want to call the HTML5 page when a button is clicked. How can I do this?

Is there a direct integration or I need to write my own controller and do something else.

Please tell me how to integrate the page with my existing application.

4

1 回答 1

2

将 HTML 代码放入视图中,在 config/routes.rb 中创建路由,创建控制器和您在路由中定义的操作,仅此而已。但我想你应该学习 Ruby on Rails 的基础知识,因为这是 RoR 中最基本的事情。

从这里开始:http: //guides.rubyonrails.org/

于 2012-11-10T21:48:43.173 回答