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
I18n.enforce_available_locales = true |
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
heroku plugins:install git://github.com/ddollar/heroku-accounts.git | |
---------- | |
Installing heroku-accounts... done | |
---------- |
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
# Markdown & Syntax Highlight | |
gem 'redcarpet' | |
gem 'coderay' |
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
group :production do | |
gem 'unicorn' | |
# Enable gzip compression on heroku, but don't compress images. | |
gem 'heroku-deflater' | |
# Heroku injects it if it's not in there already | |
gem 'rails_12factor' | |
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
switch (type) { | |
case 'xml': | |
data = parseXml(data); | |
break; | |
case 'json': | |
// 自動挿入タグ除去 | |
data = data.replace(/<pre style="word-wrap: break-word; white-space: pre-wrap;">/g, '') | |
data = data.replace(/<pre>/g, '') | |
data = data.replace(/<\/pre>/g, '') |
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
cd ~/labo | |
bundle gem webpay-scaffold | |
---------- | |
create webpay-scaffold/Gemfile | |
create webpay-scaffold/Rakefile | |
create webpay-scaffold/LICENSE.txt | |
create webpay-scaffold/README.md | |
create webpay-scaffold/.gitignore | |
create webpay-scaffold/webpay-scaffold.gemspec | |
create webpay-scaffold/lib/webpay/scaffold.rb |
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
belem |
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
brew install rbenv-default-gems | |
---------- | |
==> Installing rbenv-default-gems dependency: ruby-build | |
==> Downloading https://github.com/sstephenson/ruby-build/archive/v20130501.tar.gz | |
######################################################################## 100.0% | |
==> ./install.sh | |
/usr/local/Cellar/ruby-build/20130501: 75 files, 336K, built in 2 seconds | |
==> Installing rbenv-default-gems | |
==> Downloading https://github.com/sstephenson/rbenv-default-gems/archive/v1.0.0.tar.gz | |
######################################################################## 100.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
/Users/shu/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0.rc2/lib/action_dispatch/middleware/stack.rb:43:in `build': undefined method `new' for ExceptionNotifier:Module (NoMethodError) | |
from /Users/shu/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0.rc2/lib/action_dispatch/middleware/stack.rb:118:in `block in build' | |
from /Users/shu/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0.rc2/lib/action_dispatch/middleware/stack.rb:118:in `each' | |
from /Users/shu/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0.rc2/lib/action_dispatch/middleware/stack.rb:118:in `inject' | |
from /Users/shu/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0.rc2/lib/action_dispatch/middleware/stack.rb:118:in `build' | |
from /Users/shu/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/engine.rb:495:in `app' | |
from /Users/shu/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/l |
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 s | |
---------- | |
/Users/shu/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/core_ext/class/attribute_accessors.rb:40:in `block in cattr_reader': invalid class attribute name: true (NameError) | |
---------- |