%%= link_to raw(" New Item"), <%= resource_link('new', 'path') %>, :class=>"btn btn-warning pull-right ml-10", :remote=>true %> <%# Used to add a search functionality %> <%%= form_for <%= model_class %>.new, :url => <%= resource_link('index', 'path') %>, :method => :get, :remote=>true, :html=>{:class=>"pull-right", :style=>"m-bottom:0px;"} do |f| %>