Advertisement
Guest User

Untitled

a guest
Jul 31st, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <%= link_to raw('<i class="fa fa-check fa-lg"></i>'), {:action => :exampleaction, :id => obj.id}, :class => 'btn', :method => 'put'%>
  2.  
  3. <%= link_to raw('<i class="fa fa-check fa-lg"></i>'), {:action => :exampleaction, :id => obj.id}, {:class => 'btn', :method => 'put'} %>
  4.  
  5. <%= link_to raw('<i class="fa fa-check fa-lg"></i>'), examplecontrollers_exampleaction_path(:id => obj.id), {:class => 'btn', :method => 'put'} %>
  6.  
  7. <%= link_to raw('<i class="fa fa-check fa-lg"></i>'), examplecontrollers_exampleaction_path(:id => obj.id), {:class => 'btn', :method => :put} %>
  8.  
  9. <%= link_to raw('<i class="fa fa-check fa-lg"></i>'), examplecontrollers_exampleaction_path(:id => obj.id), {:class => 'btn', method: :put} %>
  10.  
  11. put 'examplecontrollers/exampleaction' => "examplecontrollers#exampleaction", :as => 'exampleaction'
  12.  
  13. put 'examplecontrollers/exampleaction'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement