This file contains 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
<h1>Sleep Tracking</h1> | |
<%= link_to "New Day", new_sleep_path %> | |
<% @sleep.each do |s| %> | |
<p>Woke at : <%= s.wake %></p> | |
<% end %> |
This file contains 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> | |
<html> | |
<head> | |
<title>Life</title> | |
<%= stylesheet_link_tag "application", :media => "all" %> | |
<%= javascript_include_tag "application" %> | |
<%= csrf_meta_tags %> | |
</head> | |
<body> | |
This file contains 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
LifeUlator::Application.routes.draw do | |
get "status_updates/index" | |
devise_for :users do | |
resources :days | |
end | |
resources :users do # or do devise_for :users do | |
resources :projects |
This file contains 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
class ActionStepsController < ApplicationController | |
def create | |
@project = current_user.projects.find(params[:project_id]) # project.rb has a belongs_to :user and user_id column | |
@sub_project = @project.sub_projects.find(params[:sub_project_id]) | |
@action = @sub_project.action_steps.build(params[:action_step]) | |
if @action.save | |
redirect_to [current_user, @project, @sub_project] | |
else | |
render "sub_projects/show" |
This file contains 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
# /etc/profile | |
# System wide environment and startup programs, for login setup | |
# Functions and aliases go in /etc/bashrc | |
# It's NOT a good idea to change this file unless you know what you | |
# are doing. It's much better to create a custom.sh shell script in | |
# /etc/profile.d/ to make custom changes to your environment, as this | |
# will prevent the need for merging in future updates. |
This file contains 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
Started by user anonymous | |
[EnvInject] - Loading node environment variables. | |
Building in workspace /var/lib/jenkins/jobs/WebServiceCucumber/workspace | |
Checkout:workspace / /var/lib/jenkins/jobs/WebServiceCucumber/workspace - hudson.remoting.LocalChannel@6fa053d5 | |
Using strategy: Default | |
Last Built Revision: Revision c68c082c3c0290916d8c0a088d5ed462184e033f (origin/HEAD, origin/master) | |
Fetching changes from 1 remote Git repository | |
Fetching upstream changes from https://github.com/nickcin/c2f-wsdl.git | |
Seen branch in repository origin/HEAD | |
Seen branch in repository origin/master |
This file contains 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
+ which cucumber | |
/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin/cucumber | |
+ whoami | |
jenkins | |
+ pwd | |
/var/lib/jenkins/jobs/c2f-webservice-cucumber/workspace | |
+ echo 'file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/stapler-jruby-1.177.jar!/gem' | |
file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/stapler-jruby-1.177.jar!/gem | |
+ echo /sbin:/usr/sbin:/bin:/usr/bin:/etc/alternatives/anthome:/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/home/pillar/.rvm/rubies/ruby-1.9.2-p320/bin/:/usr/local/maven/bin::/usr/local/maven/bin:/home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/home/pillar/.rvm/gems/ruby-1.9.2-p320@global/bin:/home/pillar/.rvm/rubies/ruby-1.9.2-p320/bin:/home/pillar/.rvm/bin:/usr/lib64/qt-3.3/bin:/usr/local/maven/bin::/usr/local/bin:/usr/bin:/bin:home/pillar/.rvm/gems/ruby-1.9.2-p320/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/pillar/.rvm/bin:/home/pillar/bin:/home/pillar/.rvm/bin:home/pillar/.rvm/gems/ruby-1.9.2-p320/bin | |
/sbin:/usr/sbin:/bin:/usr/bin:/etc/alternatives/anthome:/home/pillar/.rvm/gems/ruby-1.9.2-p320 |
This file contains 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
source :rubygems | |
#ruby=1.9.2 | |
group :test do | |
gem 'cucumber', '1.1.3' | |
gem "rspec-expectations", "~> 2.11.3" | |
gem "savon", "~> 1.2.0" | |
gem "httpi", "~> 1.1.1" | |
gem "test-unit", "~> 2.5.2" | |
gem "rspec", "~> 2.11.0" |
This file contains 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
class Account | |
attr_accessor :balance | |
def initialize(amount) | |
@balance = 0 || amount if amount.length | |
end | |
def history | |
@history ||= Array.new |
This file contains 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
development: | |
adapter: postgresql | |
database: weed_types | |
username: nicko | |
host: localhost |