忙しい人のためのまとめ インストール Macは brew install rbenv ruby-build でインストール。 Ubuntuは git clone https://github.com/sstephenson/rbenv.git ~/.rbenv git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build apt-get install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
I use Ruby 1.9.2 and Rails 3.0.5 I have the following error: incompatible character encodings: ASCII-8BIT and UTF-8 It has nothing to do with the database i think. The error is happinging on this line in a view (just a div haml call): #content full stack: ActionView::Template::Error (incompatible character encodings: ASCII-8BIT and UTF-8): 21: -flash.each do |name, msg| 22: =content_tag :div, msg,
I got the error incompatible character encodings: UTF-8 and ASCII-8BIT, when the view found in the database some characters like: ñ, á, é, etc. My enviroment is: Rails: 3.2.5 Ruby: 1.9.4p194 Database: Oracle 10g (10.2.0.1.0) I can save this characters in the database, using Toad. I tried to write this, in the first line of my view: <% # encoding: utf-8 %> In enviroment.erb Encoding.default_externa
アプリサーバーで使うパッケージのセットアップを chef-solo で自動化できたけど、Ruby と chef をインストールする作業は手作業のまま。この部分も自動化したい。 そこで Capistrano を使って Ruby と chef をインストールするスクリプトを書いてみた。 # coding: utf-8 set :application, "<app name>" set :user, "<username>" set :port, 10022 set :ruby_version, "1.9.3-p194" role :app, "<host name>" default_run_options[:pty] = true desc "git tasks" namespace :git do desc "install git" task :install, :roles => :
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く