<%= form_for @user, url: user_update_path do |f| %> <%= render 'error_messages', object: f.object %>