Rails Link helper with $_POST params

  • by


<%= link_to 'New Thing', new_thing_path(parent_id: thing.parent_id) %>

Refs:
https://www.rubyguides.com/2019/05/rails-link_to-method/
https://stackoverflow.com/questions/13414663/using-rails-link-to-for-links-that-post#13414818

Leave a Reply

Your email address will not be published. Required fields are marked *