Skip to content

Instantly share code, notes, and snippets.

View m3talsmith's full-sized avatar

Michael Christenson II m3talsmith

View GitHub Profile
%span= link_to "Destroy", project_path(:id => @project.id), :method => :destroy, :confirm => "Are you sure you want to destroy this project? This will effect all work tasks and people related to this project."
<div id="content">
<h2>
Managing Your Current
Fields
</h2>
<div class="top_pane">
<script type="text/javascript" src="/javascripts/application.js?1248187733"/>
<script type="text/javascript" src="/javascripts/filters.js?1248187733"/>
<script type="text/javascript" src="/javascripts/jquery.form.js?1246544703"/>
Feature: Manage Users
So that I can manage my user base
As an administrator
I want to be able to list, create, view, update, activate, deactivate, and archive all users
Background: # features/manage_users.feature:6
Given the following users: # features/step_definitions/manage_users_steps.rb:1
| name | login | password | is_admin |
| Test Admin | test_admin | noone | true |
| Basic User | basic_user | loluser | false |
Apache CouchDB 0.11.0a811975 (LogLevel=info) is starting.
Apache CouchDB has started. Time to relax.
[info] [<0.32.0>] Apache CouchDB has started on http://127.0.0.1:5984/
[info] [<0.96.0>] 127.0.0.1 - 'GET' /
[info] [<0.96.0>] Response code: 200
[info] [<0.96.0>] 127.0.0.1 - 'GET' /
[info] [<0.96.0>] Response code: 200
[info] [<0.96.0>] 127.0.0.1 - 'DELETE' /test_suite_db/
[info] [<0.96.0>] Response code: 404
[info] [<0.96.0>] 127.0.0.1 - 'DELETE' /test_suite_db/
. /usr/local/lib/couchdb/erlang/lib/couch-0.11.0a811975/priv/couchspawnkillable /usr/local/bin/couchjs /usr/local/share/couchdb/server/main.js
kill -9 97773
reset
ReferenceError: reset is not defined
[Mon, 07 Sep 2009 04:01:35 GMT] [info] [<0.287.0>] 127.0.0.1 - 'GET' /
[Mon, 07 Sep 2009 04:01:35 GMT] [info] [<0.287.0>] Response code: 200
[Mon, 07 Sep 2009 04:01:35 GMT] [info] [<0.287.0>] 127.0.0.1 - 'DELETE' /test_suite_db/
[Mon, 07 Sep 2009 04:01:35 GMT] [info] [<0.287.0>] Response code: 200
[Mon, 07 Sep 2009 04:01:35 GMT] [info] [<0.287.0>] 127.0.0.1 - 'DELETE' /test_suite_db/
function give_me_the_world() {
return "You have the world";
}
var i_rule_you = give_me_the_world();
print(i_rule_you);
var fruit = {color: "orange", taste: "sticky"}
print(fruit.color);
== Install
Go to install for Snow Leopard and install all the dependencies as described here http://wiki.apache.org/couchdb/Installing_on_OSX
sudo svn co http://svn.apache.org/repos/asf/couchdb/trunk /usr/local/couchdb
cd /usr/local/couchdb
./bootstrap && ./configure --with-js-include=/usr/local/spidermonkey/include --with-js-lib=/usr/local/spidermonkey/lib
make
make dev
Download couchdbd from this gist
dyld: Library not loaded: Darwin_DBG.OBJ/libjs.dylib
Referenced from: /usr/local/lib/couchdb/bin/couchjs
Reason: image not found
Trace/BPT trap
@m3talsmith
m3talsmith / gist:268233
Created January 4, 2010 02:01 — forked from brianjlandau/gist:176754
A Capistrano Recipe using Git as the folder structure, not just the scm.
# you'd obviously have more settings somewhere
set :scm, :git
set :repository, "[email protected]:defunkt/github.git"
set :branch, "origin/master"
set :migrate_target, :current
set(:latest_release) { fetch(:current_path) }
set(:release_path) { fetch(:current_path) }
set(:current_release) { fetch(:current_path) }