How to link between two controllers and two views in HTML/erb
|Added at||2016-12-18 12:12|
I am trying to make simple webboard application. In my question/show view, I have get method to link for action to answer_controller. But it seems not link to the answer view. The error is Sinatra does not know this path. I want to create the path from question/show.erb view to answer/new.erb via submit answer button. What should I do?
question_controller (Controller folder)
question/show (View folder)
answer_controller (Controller folder)