DEV Community

bomoniyi
bomoniyi

Posted on

Refactoring - Using form_with

Using form_with helps get rid of the need to include authenticity token. Example of using form_with

<%= form_with(url: movie_path) do %>

<% end %>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)