title: Displaying Options for select values in view (rails)
body: <p>I have a simple form, with a select tag, with options for the select. I want to be able to list those selected options on a view. The only way I know how to do this, would be to call the instance variable that has ActionItem.new(action_item_params) in it, with an attribute as the method (in this case, :purpose). In the view, this displays nothing, where I'd like it to display the select tag option the user selected. - New to OOP, Ruby, and Rails - likely a rookie situation. Will read face off in the meantime. </p>
  
  <p>Form: </p>
  
  <pre><code>&lt;div align="center"&gt;&lt;h1&gt;&lt;%= @client_name.name %&gt;&lt;/h1&gt;&lt;/div&gt;&lt;/br&gt;&lt;/br&gt;
  
  &lt;div align="center"&gt;&lt;strong&gt;Communication Options:&lt;/strong&gt;&lt;/br&gt;&lt;/br&gt;
  
  &lt;%= form_for(:action_item, url: {controller: "action_item", action: "create"} ) do |f| %&gt;
  
  &lt;%= f.label("Purpose Of This Contact?:") %&gt;
  &lt;%= select_tag(:purpose, options_for_select([['Initial conversation/pitch', 1],  ['Follow up correspondence', 2], ['Additional selling point', 3], ['New benefits to  convey', 4]])) %&gt;&lt;/br&gt;&lt;/br&gt;
  
  
  &lt;%= f.label("Method Of Correspondence:") %&gt;
  &lt;%= select_tag(:correspondence_method, options_for_select([['Send an email', 1],  ['Tweet on Twitter', 2], ['Make a phone call', 3], ['Send direct mail', 4]])) %&gt;&lt;/br&gt;&lt;/br&gt;
  
  
  &lt;%= f.label("Do I know the contact person? ") %&gt;
  &lt;%= select_tag(:know_person, options_for_select([['Yes', 1], ['No (have to find out)', 2]])) %&gt;&lt;/br&gt;&lt;/br&gt;
  
  &lt;%= f.label("this field will be added, ONLY if above field is NO: How could you find the contact's name?") %&gt;&lt;/br&gt; 
  &lt;%= f.text_field(:contact_name_answer, :size =&gt; 50) %&gt;&lt;/br&gt;&lt;/br&gt;
  
  &lt;%= f.label("Additional notes") %&gt;&lt;/br&gt; 
  &lt;%= f.text_field(:additional_notes, :size =&gt; 50) %&gt;&lt;/br&gt;&lt;/br&gt;
  &lt;%= f.submit("Store Action Item") %&gt;&lt;/br&gt;&lt;/br&gt;
  
  
  
  &lt;% end %&gt;
  </code></pre>
  
  <p>And the show page: </p>
  
  <pre><code>&lt;h1&gt;Action Item: &lt;/h1&gt;
  
  Added:  &lt;strong&gt;&lt;%= @action_submission.additional_notes %&gt;&lt;/strong&gt;, nice job.&lt;/br&gt; &lt;/br&gt;
  Added: &lt;strong&gt;&lt;%= @action_submission.contact_name_answer %&gt;&lt;/strong&gt;&lt;/br&gt;&lt;/br&gt;
  Added: &lt;strong&gt;&lt;%= @action_submission.correspondence_method%&gt;&lt;/strong&gt;&lt;/br&gt;&lt;/br&gt;
  </code></pre>