title: TypeError: #<...> is not a symbol
body: <p>I cannot figure out this issue, even if it does not seem complicated...</p>
  
  <p>I want to make a form to send emails in my rails app but this one does not work. I receive the following error:</p>
  
  <p><code>TypeError in MessagesController#create</code>:
  <code>#&lt;Message content: "test", email: "test@test.fr", name: "test"&gt; is not a symbol</code></p>
  
  <p>Error occurs in: <code>app/controllers/messages_controller.rb:10:in 'create'</code></p>
  
  <p>1.here is my <code>messages_controller</code>:</p>
  
  <pre><code>class MessagesController &lt; ApplicationController
  
    def new
      @message = Message.new
    end
  
    def create
      @message = Message.new(params[:message])
      if @message.valid?
        Messenger.send(@message).deliver
        redirect_to root_url, notice: "Message sent! Thank you for contacting us."
      else
        render "new"
      end
    end
  
  end
  </code></pre>
  
  <ol>
  <li><p>the form <code>new.html.erb</code>:</p>
  
  <pre><code>&lt;%= form_for @message do |f| %&gt;
      &lt;%= f.text_field :name %&gt;
      &lt;%= f.text_field :email %&gt;
      &lt;%= f.text_area :content, :rows =&gt; 5 %&gt;
  &lt;%= f.submit "Send Message" %&gt;
  &lt;% end %&gt;
  </code></pre></li>
  <li><p>the <code>Message</code> model built using <code>ActiveAttr</code>:</p>
  
  <pre><code>class Message
    include ActiveAttr::Model
  
    attribute :name
    attribute :email
    attribute :content
  end
  </code></pre></li>
  <li><p>My <code>Messenger</code> mailer:</p>
  
  <pre><code>class Messenger &lt; ActionMailer::Base
    default :from =&gt; "test@test.com"
  
    def send(message)
      mail(:to =&gt; "test@test.com", :subject =&gt; "test")
    end
  
  end
  </code></pre></li>
  </ol>
  
  <p>Thank you for your help!</p>