“/#action” Route in Routes.rb in Ruby on Rails

不打扰是莪最后的温柔 提交于 2019-12-01 15:10:34

The actual URL you are visiting there is http://lala.com/. The server does not see the #album/some-album-id piece, the fragment identifier. That is seen solely by the browser.

There is a growing trend of building MVC apps with the views and controllers in the client/browser, rather than on the server. The application is implemented with JavaScript in the client, instead of with Ruby on the server. The server essentially becomes the API or the data-access layer, rather than being the piece that renders HTML.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!