title: How to develop native ios app with existing Rails app as backend?
body: <p>I'm working on a service which can let users create simple profiles.</p>
  
  <p>It was made by reference to Ruby on Rails Tutorial(<a href="https://www.railstutorial.org/" rel="nofollow">https://www.railstutorial.org/</a>).</p>
  
  <p>It can authenticate users simply with email and password.(without devise)</p>
  
  <p><strong>Question:</strong>  </p>
  
  <ol>
  <li>How to authorize users from ios in my Rails app? </li>
  <li>How to post article to my Rails app from ios app?</li>
  </ol>
  
  <p><strong>Environment:</strong></p>
  
  <ul>
  <li>Rails 4.2  </li>
  <li>Swift 2.0</li>
  </ul>
  
  <p>I would like to know the details of authentication flow and sample code.</p>