% # Unclear why this url/method hack is needed %>
<%= form_for @account, :url => @account.persisted? ? account_path(@account.account_id) : accounts_path, :method => @account.persisted? ? :put : :post, :html => {:class => 'form-horizontal'} do |f| %>
<% unless @account.persisted? %>
<% else %>
<%= f.hidden_field :external_key %>
<% end %>
<% unless @account.persisted? %>
<% else %>
<%= f.hidden_field :bill_cycle_day_local %>
<%= f.hidden_field :currency %>
<%= f.hidden_field :time_zone %>
<% end %>
<% unless @account.persisted? %>
<% else %>
<%= f.hidden_field :is_migrated %>
<% end %>
<% end %>