This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Backbone.Rails.js | |
// | |
// Makes Backbone.js play nicely with the default Rails setup, i.e., | |
// no need to set | |
// ActiveRecord::Base.include_root_in_json = false | |
// and build all of your models directly from `params` rather than | |
// `params[:model]`. | |
// | |
// Load this file after backbone.js and before your application JS. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us"> | |
<head> | |
<title>jCarousel Examples</title> | |
<link href="../style.css" rel="stylesheet" type="text/css" /> | |
<!-- | |
jQuery library | |
--> | |
<script type="text/javascript" src="../lib/jquery-1.4.2.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mycarousel_initCallback(carousel) { | |
console.log('init'); | |
jQuery('.jcarousel-control a').bind('click', function() { | |
var size = carousel.size(), | |
first = carousel.first, | |
last = carousel.last; | |
console.log('carousel first = ' + first + ', size = ' + size + ', last = ' + last); | |
// var addIndex = first - 0.1; | |
// carousel.add(addIndex, '<li><div></div></li>'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.mouse, #preview{ | |
position: absolute; | |
background-repeat: no-repeat; | |
height: 22px; | |
min-width: 15px; | |
z-index: 100; | |
} | |
.mouse{ | |
background-image: url('../images/cursor.png'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rake test:units --trace | |
(in /Users/doug/code/apps/greenmonkey) | |
** Invoke test:units (first_time) | |
** Invoke test:prepare (first_time) | |
** Invoke db:test:prepare (first_time) | |
** Invoke db:abort_if_pending_migrations (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
rake aborted! | |
uninitialized constant FactoryGirl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
3 scenarios (3 passed) | |
30 steps (30 passed) | |
0m2.846s | |
The --wip switch was used, so I didn't expect anything to pass. These scenarios passed: | |
(::) passed scenarios (::) | |
features/edit_sites.feature:12:in `Scenario: List Sites' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: Edit Site # features/edit_sites.feature:41 | |
Given I am on the homepage # features/step_definitions/web_steps.rb:12 | |
When I log in with email: "[email protected]" and password: "password" | |
# features/step_definitions/homepage_steps.rb:12 | |
And I go to the edit page of the site: "BOZO" # features/step_definitions/web_steps.rb:16 | |
And I fill in "site_tier" with "5" # features/step_definitions/web_steps.rb:32 | |
And I fill in "new memo" for "site_memo" # features/step_definitions/web_steps.rb:36 | |
-0.0-0.0 And I press "Update" # features/step_definitions/web_steps.rb:20 | |
And I go to the edit page of the site: "BOZO" # features/step_definitions/web_steps.rb:16 |
NewerOlder