<% if flash[:error] %>
<%= flash[:error] %>
<% end %>
        

Show

# app/lib/services/hubspot/contacts/show.rb

Properties

<%= form_for :contact, url: "/contacts/#{params[:id]}", method: 'put' do |form| %> <% @contact.properties.each do |property_key, property_value| %> <%= label(:contact, property_key, @properties.find { |p| p.name == property_key }.label) %> <% if property_key == 'hubspot_owner_id' %> <%= select( :contact, property_key, @owners.collect { |owner| [[owner.first_name, owner.last_name].join(' '), owner.id] }, include_blank: 'Not assigned', selected: property_value ) %> <% else %> <%= text_field(:contact, property_key, value: property_value) %> <% end %> <% end %>
          

Update

# app/lib/services/hubspot/contacts/update.rb

<%= submit_tag("Save", class: 'button-primary') %> <% end %>