View gist:1093653
When I follow 'Click me'
View gist:1093687
find('.clickable-text', :text => 'Click me').click
View gist:1093695
When /^I click the text "([^"]+)"$/ do |text|
find('.clickable-text', :text => text).click
end
View gist:1093702
<a href="path/to/url" class="clickable-text">Click me</a>
View gist:1093712
<h3 class='clickable-text'>Click me</h3>
View gist:1094988
else if directive.constructor == Array
childTemplate = element.children()[0]
fragment = document.createDocumentFragment()
if childTemplate
for matchDirective in directive
expanded = expandTemplateInPlace $(childTemplate).clone(true), matchDirective
View gist:1095812
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0"> <!-- version is required by opml -->
<head> <!-- <head> is required by opml -->
<dateCreated>July 20, 2011 15:45:00</dateCreated>
<dateModified>July 20, 2011 15:45:00</dateModified>
<ownerName>Atomic Object</ownerName>
<ownerEmail>info@atomicobject.com</ownerEmail>
</head>
View gist:1245105
- for course in @courses
- course.assessment_schedules.each do |assessment_schedule|
%tr.assessments
%td.course-title= course.title
%td.assessment-title= assessment_schedule.assessment_template.title
%td= assessment_schedule.assessment_template.created_at.to_s(:short)
%td.start-btn.text-center
- if assessment_schedule.takable?
= link_to "Start", assessment_schedule_assessments_path(assessment_schedule), :method => 'post', :class => "btn start"
View gist:1300128
= link_to image_tag("https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif"), :controller => 'paypal_express', :action => 'checkout'
View config\routes.rb
get "paypal_express/checkout"