title: How to change my boolean output to a string value in ruby
body: <p>I have a form where my user enters a person in reply to a wedding invite. They enter a name, menu choice, and select: attending - Yes / No - I then have a count on the true and false amounts with labels so the user can see how many people are attending or not attending. </p>
  
  <p>My problem is in the table itself. Where the RSVP column sits, i have at moment just got 'true' or 'false'. Is there anyway in Ruby i can change this to be a string value for my index.html.erb? </p>
  
  <p><strong>Index</strong></p>
  
  <pre><code>&lt;% @replies.each do |reply| %&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;%= reply.name %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= reply.menu %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= reply.rsvp %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= link_to 'Show', reply, class: "btn" %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= link_to 'Edit', edit_reply_path(reply), class: "btn" %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= link_to 'Delete', reply, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= reply.user.full_name %&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p><strong>reply.rb</strong></p>
  
  <pre><code>class Reply &lt; ActiveRecord::Base
    attr_accessible :menu, :name, :rsvp, :user_id
    belongs_to :user
  
    def self.find_attending
      Reply.where(:rsvp =&gt; "true").count
    end
  
    def self.find_not_attending
      Reply.where(:rsvp =&gt; "false").count
    end
  end
  </code></pre>
  
  <p><strong>_form.html.erb</strong></p>
  
  <pre><code>&lt;%= f.input :user_id, collection: User.all, label_method: :full_name, :label =&gt; 'Added By' %&gt;
  &lt;%= f.input :name, :label =&gt; 'Person(s) Name' %&gt;
  &lt;%= f.input :menu, :label =&gt; 'Menu Choice' %&gt;
  &lt;%= f.collection_radio_buttons :rsvp, [[true, 'Attending'] ,[false, 'Not Attending']], :first, :last %&gt;
  </code></pre>
  
  <p><strong>db</strong></p>
  
  <pre><code>class CreateReplies &lt; ActiveRecord::Migration
    def change
      create_table :replies do |t|
        t.string :name
        t.text :menu
        t.boolean :rsvp, :default =&gt; false
  
        t.timestamps
      end
    end
  end
  </code></pre>
  
  <p>I'm very new to Ruby, any pointers would be appreciated. Many thanks.</p>