Skip to content

Instantly share code, notes, and snippets.

View george's full-sized avatar

George george

View GitHub Profile
# == Schema Information
#
# Table name: flying_spaghetti_monsters
#
# id :integer(4) not null, primary key
# awesomeness :string
# meatballs :boolean
# last_seen :datetime
# model-specific requires
@george
george / optionalclass.haml
Created January 4, 2012 18:33 — forked from scottmessinger/optionalclass.haml
optional class?
%table
%tr
%td.optional_class_name
Text
Text
Text
App.Router = Ember.Router.extend
root: Ember.Route.extend
index: Ember.Route.extend
route: "/"
connectOutlets: (router)->
router.get('applicationController').connectOutlet
outletName: 'view' # default('home', App.Collections.Home.all())
viewClass: App.Views.HomeView
controller: App.Controllers.homeController
context: foo
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')