いままでコントローラのrenderに書いていたのですが、formタグに書く方法もあったのでメモ。
<%= form_for @post, url: posts_path(anchor: 'post-anchor') do |f| %>
.
.
.
<% end %>
More than 5 years have passed since last update.
いままでコントローラのrenderに書いていたのですが、formタグに書く方法もあったのでメモ。
<%= form_for @post, url: posts_path(anchor: 'post-anchor') do |f| %>
.
.
.
<% end %>
Register as a new user and use Qiita more conveniently