<% url = @client.new_record? ? manages_path : manage_path(@client) %> <%= form_for @client, url: url do |f| %>