$ su postgres
$ psql -U postgres
psql (9.2.4)
Type "help" for help.
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
$ rvm --trace requirements ruby | |
+ [[ -n '' ]] | |
+ set -o errtrace | |
+ export 'PS4=+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ PS4='+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ 1370044767.N /scripts/cli : __rvm_parse_args() 709 > [[ -z '' ]] | |
+ 1370044767.N /scripts/cli : __rvm_parse_args() 709 > [[ -n '' ]] | |
+ 1370044767.N /scripts/cli : __rvm_parse_args() 712 > [[ error == '' ]] | |
+ 1370044767.N /scripts/cli : __rvm_parse_args() 712 > [[ 0 -eq 1 ]] | |
+ 1370044767.N /scripts/cli : __rvm_parse_args() 712 > [[ -n '' ]] |
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
############################################## | |
####### $ rvm --debug requirements ruby ##### | |
############################################## | |
$ rvm --debug requirements ruby | |
rvm_autolibs_flag=enable | |
Installing requirements for osx, might require sudo password. | |
requirements code for osx loaded | |
brew seems to be writable | |
Install custom packages: homebrew/dupes. |
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
minibook:sandbox aj$ ruby -v | |
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin11.4.2] | |
minibook:sandbox aj$ rvm gemset use mytest --create | |
minibook:sandbox aj$ gem install rails --version=4.0.0.rc2 | |
Fetching: i18n-0.6.4.gem (100%) | |
Successfully installed i18n-0.6.4 | |
Fetching: multi_json-1.7.7.gem (100%) | |
Successfully installed multi_json-1.7.7 | |
Fetching: tzinfo-0.3.37.gem (100%) | |
Successfully installed tzinfo-0.3.37 |
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
# app / controllers / application_controller.rb | |
class ApplicationController < ActionController::Base | |
# Prevent CSRF attacks by raising an exception. | |
# For APIs, you may want to use :null_session instead. | |
protect_from_forgery with: :exception | |
before_filter :configure_permitted_parameters, if: :devise_controller? | |
protected | |
def configure_permitted_parameters |
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
$ RAILS_ENV="staging" rake db:migrate --trace | |
** Invoke db:migrate (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Invoke db:load_config (first_time) | |
** Execute db:load_config | |
** Execute db:migrate | |
/usr/local/lib/ruby/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825: [BUG] Segmentation fault | |
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux] |
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
#!/usr/bin/env ruby | |
# Fizz Buzz | |
# Copyright (c) 2013 AJ Acevedo | http://ajacevedo.com | |
# This content is released under the MIT License. | |
# http://www.opensource.org/licenses/mit-license.php | |
# Version: 0.1 | |
# The heavy lifting of Fizz Buzz | |
def fizz_buzz?(count) |
Date: [[Date of Document]] Between [Our Company] and [Your Company]
We’re not big on formality, but sometimes it’s best to have a few simple things written down so that we’re all on the same page. In this contract you won’t find complicated legal terms or large passages of unreadable text. We have no desire to trick you into signing something that you might later regret. We do want what’s best for the safety of both parties, now and in the future.
These suggestions are referencing pages from the pdf version published on 2013-08-10
Page: 5
Details:
If using rspec then there is no need for the test directory.
Original:
rails plugin new subscribem --full --mountable --dummy-path spec/dummy