title: Ruby/Rails: Use `separator: '-'` instead
body: <p>Writing test for my project, and notice this warning it terminal when running rspec</p>
  
  <pre><code>DEPRECATION WARNING: Passing the separator argument as a positional
  parameter is deprecated and will soon be removed. 
  Use `separator: '-'` instead.
  (called from add_link at /myapp/app/models/post.rb:37)
  </code></pre>
  
  <p>I have an action before save record, looks like </p>
  
  <pre><code>self.link = theme + '-' + Time.now.to_formatted_s(:number)
  </code></pre>
  
  <p>And I've tried to find some information about this but I don't really don't understanding what this warning means.</p>
  
  <p>** EDIT **</p>
  
  <p>Well, I've changed for <code>"#{theme}-#{Time.now.to_formatted_s(:number)}"</code> but it still gives me the same warning.</p>
  
  <p>Than I decided to go other way and changed for <code>"#{theme}(#{date})"</code>. The <code>date</code> method look like:</p>
  
  <pre><code>date = [Time.now.day, Time.now.month, Time.now.year]
  date = date.join('-')
  date
  </code></pre>
  
  <p>But it still gives me an error.</p>
  
  <p>I don't think it's really big problem, but still I want t figure out why is that happening.</p>
  
  <p>** EDIT **</p>
  
  <p>Figure it out, it must gem that I use cause that problem (the gem is called <code>the_string_to_slug</code>) I will do future research to fix this warning with gem or I'll try to find way to replace it.</p>