Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View george's full-sized avatar

George george

View GitHub Profile
∴ bundle exec iridium generate app app
create app
create app/assets/images
create app/assets/index.html.erb
create app/config
create app/config/application.coffee
create app/config/development.coffee
create app/config/environment.coffee
create app/config/initializers
create app/config/initializers/handlebars.coffee
=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')
if($_POST[email] != '')
{
$p = db_query_row("select user_userID from student where email = '$_POST[email]'");
if($p[user_userID]) // taken
{
js_alert("Sorry, that email address has an account already. If you lost your password please go to the lost password page from the login screen.");
js_back();
die("Redirecting ...");
}
}
// Version: v1.0.pre-204-g9d988a3
// Last commit: 9d988a3 (2012-10-17 17:34:12 -0700)
(function() {
/*global __fail__*/
/**
Ember Debug
// EDITED EDITED EDITED
// Version: v1.0.pre-200-gc52773d
// Last commit: c52773d (2012-10-15 13:46:56 -0700)
(function() {
/*global __fail__*/
/**
Ember Debug
// Version: v1.0.pre-172-gea08372
// Last commit: ea08372 (2012-10-08 13:37:28 -0700)
(function() {
/*global __fail__*/
/**
Ember Debug
// Version: v1.0.pre-200-gc52773d
// Last commit: c52773d (2012-10-15 13:46:56 -0700)
(function() {
/*global __fail__*/
/**
Ember Debug
SocialRoi.ProgramEtoStaffMemberSalaryBlockView = Em.View.extend
templateName: 'reports/program_eto_staff_member_salary_block'
programEtoStaffMemberSalaryTextFieldView: Em.TextField.extend
classNames: 'span2 currency'.w()
transaction: null
init: ->
@_super()
# debugger
@set('transaction', SocialRoi.store.transaction())
(function() {
window.DS = Ember.Namespace.create({
CURRENT_API_REVISION: 6
});
})();
(function() {
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