Can the 'Back' browser functionality be invoked from a Rails 'Back' link?
Use
<%= link_to 'Back', :back %>
This is specificied in the RDoc here
This generates some Javascript to navigate backward. I've just tested it, and it works.
In Rails 3 and earlier:
link_to_function "Back", "history.back()"
In Rails 4, this method has been removed. See Andreas's comment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With