title: can we render an array to ajax call directly in Rails?
body: <p>I am calling below method in an ajax call. I expect this method to return me an array so that I can loop through in my ajax call for a desired result. </p>
  
  <p>Normally we render partial or text . i am not sure how to render an array. could some one please help me out . I know that render text: for arrays will not work .</p>
  
  <pre><code>def get
          @bookmarks = Project.get(params[:username])
          render text: @bookmarks    
      end
  </code></pre>