title: Giving right align to numeric data in datatables
body: <p>I am using jquery-datatables. I want that if the value is numeric its alignment should be right and if it is string then the alignment should be left. Is it possible with datatables or is there any method in it?</p>
  
  <pre><code>  &lt;% @tasks.each do |task| -%&gt; 
    &lt;tr&gt;
      &lt;% col_order.each do |key| %&gt;
        &lt;td&gt;
        &lt;% value = task[key.column_name.split(" as ")[1]] || task[key.column_name.split(".")[1]] -%&gt;
        &lt;% if key["drilldown_reportid"].present? %&gt;
          &lt;%= link_to value, project_report_path(@current_project,key["drilldown_reportid"], :column=&gt;"#{key.column_name}", :value=&gt;"#{value}") %&gt;
        &lt;% else %&gt;
          &lt;%= value -%&gt; &lt;/td&gt;
        &lt;% end %&gt;
      &lt;% end %&gt;
    &lt;/tr&gt;
  
    &lt;% end -%&gt;
  </code></pre>