%%= link_to raw(" New Item"), <%= resource_link('new', 'path') %>, :class=>"btn btn-warning pull-right margin-left-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=>"margin-bottom:0px;"} do |f| %>