<%= form_for @campaign do |f| %> <%= f.error_messages %>

<%= f.label :name %>
<%= f.text_field :name %>

<%= f.label :subject %>
<%= f.text_field :subject %>

<%= f.label :body %>
<%= f.text_area :body %>

You can use these:

||WB|| - Web Beacon

||UNSUB|| - Unsubscribe link
Ex.: <a href="||UNSUB||">Click here to unsubscribe</a>

||LINK|| - Link
Ex.: <a href="||LINK||http://www.mysite.com/products/1">Click to buy</a>

<%= hidden_field_tag "campagne_campagne_campaign[campagne_list_ids][]", nil%> <% Campagne::CampagneList.all.each do |list| %> <%= check_box_tag "campagne_campagne_campaign[campagne_list_ids][]", list.id, @campaign.campagne_list_ids.include?(list.id), id: dom_id(list) %> <%= label_tag dom_id(list), list.name %>
<% end %>

<%= f.submit 'Create Campaign' %>

<% end %>