title: Capybara/Cucumber can't click on a link/button in a twitter bootstrap rails application
body: <p>Ok so I am pretty sure I am doing something stupid here, but here is the generated HTML for a button on my page <br/>
  <code>&lt;a href="/courses/1" class="btn" id="Enroll in Course"&gt;Enroll in Course&lt;/a&gt;</code></p>
  
  <p>The Cucumber Step Definition are as follows: <br/></p>
  
  <pre><code>When /^I go to the course homepage$/ do 
    visit("/courses/#{@course.id}")
  end 
  
  Then /^I should see the "(.*?)" button$/ do |button|
    has_button?(button)
  end
  
  When /^I click on "(.*?)"$/ do |button| 
    click_on(button)
  end
  </code></pre>
  
  <p>The second step which is checking if the button exists on the page passes flawlessly but the third step which is clicking on the button, says button or link not found (<code>click_on</code> is supposed to handle both buttons and links). </p>
  
  <p>Any idea why that is happening?</p>
  
  <p>I am using twitter bootstrap and here is the snippet from the erb file that generates the html above:<br/>
  <code>&lt;%= link_to 'Enroll in Course',course_path, :class => 'btn', :id => 'Enroll in Course' %></code></p>
  
  <p>Any help would be greatly appreciated!
  Thanks!</p>