KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Question has many Comments. A URL "questions/123" shows a question. A URL: "questions/123#answer-345" shows a question and highlights an answer. 345 - is id of Answer model, "answer-345" is id attribute of HTML element. I need to override "answer_path(a)" method to get "questions/123#answer-345" instead of "answers/345" How to do it ?
Tags (comma-separated)
Save Edits
Cancel