Reputation: 65173
<%= link_to( { :controller => 'board', :action => 'start_game', :human_is_first => true }, :remote => true) do %>
<span>Yes</span>
<% end %>
works perfectly in rails 3, how do i get it to work with sinatra?
Upvotes: 1
Views: 595
Reputation: 11628
link_to
a helper method from the module ActionView::Helpers::UrlHelper.
You would need to create your own method or output the html <a>
tag to achieve the same thing.
Upvotes: 2