How can I create a route of this format (in Ruby on Rails routes.rb file):
/#action/id
Specifically with the “#” character inserted before the action controller…for example, see http://lala.com/#album/some-album-id
thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The actual URL you are visiting there is
http://lala.com/. The server does not see the#album/some-album-idpiece, 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.