Skip to content

Instantly share code, notes, and snippets.

@remear
remear / gist:708513
Created November 21, 2010 06:28
Bash Prompts
#PS1="\[\033[1;32m\]## \h | $(~/.rvm/bin/rvm-prompt) [\[\033[0;36m\]\w\[\033[0m\]\[\033[1;32m\]] ∴ \[\033[0m\]"
#PS2="\[\033[1;32m\]- \[\033[0m\]"
group :test do
gem 'test-unit'
gem 'rspec', '2.0.1'
gem "rspec-rails", "2.0.1"
gem 'cucumber', '0.9.2'
gem 'cucumber-rails', '0.3.2'
gem 'capybara', '0.3.9'
gem "escape_utils"
gem 'database_cleaner'
gem 'factory_girl'
class Users::RegistrationsController < Devise::RegistrationsController
def after_sign_in_path_for(resource)
user_thank_you_path
end
End
PKG_FILES = FileList[
'[a-zA-Z]*',
'generators/**/*',
'lib/**/*',
'rails/**/*',
'tasks/**/*',
'test/**/*'
]
spec = Gem::Specification.new do |s|
group :test do
gem 'test-unit'
gem 'rspec', '2.0.1'
gem "rspec-rails", "2.0.1"
gem 'cucumber'
gem 'cucumber-rails'
gem 'capybara'
gem 'cover_me', '>= 1.0.0.rc2', :group => :test
end
rspec (2.0.1, 2.0.0, 2.0.0.beta.20, 1.3.0)
rspec-core (2.0.1, 2.0.0, 2.0.0.beta.20)
rspec-expectations (2.0.1, 2.0.0, 2.0.0.beta.20)
rspec-mocks (2.0.1, 2.0.0, 2.0.0.beta.20)
rspec-rails (2.0.1, 2.0.0.beta.20)
# On branch rdoc_symbols
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: actionpack/lib/action_controller/metal/responder.rb
# modified: actionpack/lib/action_view/helpers/date_helper.rb
# modified: actionpack/lib/action_view/helpers/form_helper.rb
# modified: actionpack/lib/action_view/helpers/number_helper.rb
# modified: actionpack/lib/action_view/lookup_context.rb
1:
=> #<Article id: 13, title: "inside", created_at: "2010-10-06 02:23:17", updated_at: "2010-10-06 02:23:17">
2:
=> #<Article id: 14, title: "inside", created_at: "2010-10-06 02:23:22", updated_at: "2010-10-06 02:23:22"
3:
=> [#<Article id: 13, title: "inside", created_at: "2010-10-06 02:23:17", updated_at: "2010-10-06 02:23:17">, #<Article id: 14, title: "inside", created_at: "2010-10-06 02:23:22", updated_at: "2010-10-06 02:23:22">]
4:
%fieldset.common-form.standard-form
= form_for @customer, :html => { :multipart => true } do |f|
= f.error_messages
%table{:border => "0"}
%tr
%th= f.label :name
%td= f.text_field :name
%tr
%th= f.label :street
%td= f.text_field :street
while me.stillAwake do
sheep += 1
end