title: Send URLs via SMS through Twilio-Rails
body: <p>Working on a Rails project that needs to send a link to a record to someone via SMS.</p>
  <p><strong>/services/twilio_client.rb:</strong></p>
  <pre><code>def send_text(job, message)
      client = Twilio::REST::Client.new account_sid, auth_token
      client.messages.create(
      to: job.cell_number,
      from: phone_number,
      body: message
      )
  end
  </code></pre>
  <p><strong>From Controller:</strong></p>
  <pre><code>    if job.save? 
          message = &quot;#{@job.company} worker, you've got a new job.  See it here:&quot;
          TwilioClient.new.send_text(@job, message)
  </code></pre>
  <p>In an ideal world, I could send them a link directly to the job via SMS, but Twilio won't accept ruby code as a <code>media_url</code> and dropping <code>#{@job}</code> in the message results in receiving the object <code>#&lt;Job:0x00007f0b60818338&gt;</code> in the SMS.</p>
  <p>Clearly, this is a syntax issue, but try as I might I can't find a solution in the docs, the twilio-ruby gem, or examples published on the interweb.</p>