'Back' browser action in Ruby on Rails

前端 未结 10 949
无人共我
无人共我 2020-12-23 13:24

Can the \'Back\' browser functionality be invoked from a Rails \'Back\' link?

10条回答
  •  失恋的感觉
    2020-12-23 14:00

    Using

    link_to_function "Back", "history.back()"
    

    seems to be exactly like hitting the back button in the browser. All inputted form data is still there when you get back.

提交回复
热议问题