株式会社オイアクスは Ruby on Rails 専門のウェブ開発 & IT コンサルティング会社 です。
Link: oiax.jp
Generating public/private rsa key pair. Enter file in which to save the key (/home/kuroda/.ssh/id_rsa):
#!/usr/bin/env ruby require File.expand_path('../../config/application', __FILE__) Rails.application.require_environment! class ResqueWorkerDaemon < DaemonSpawn::Base def start(args) @worker = Resque::Worker.new('default') @worker.verbose = true @worker.work end def stop @worker.try(:...
昨日の記事 続・Rails 3.x 時代のテストフレームワーク では、Rails で使用できるテストフレームワークの基礎知識と相互関係についてまとめました。 今日は、Test::Unit と RSpec と Shoulda を具体的に比較してみたいと思います(Cucumber については、別の機会に…)。 例として「変数 @total に文字列 '100' をセットすると、式 @total.to_i は 100 を返す」というテストケースを考えましょう。 純粋な Test::Unit ではこのように書きます。 require 'test/unit' class S...
require 'rubygems' require 'spork' #uncomment the following line to use spork with the debugger #require 'spork/ext/ruby-debug' Spork.prefork do # Loading more in this block will cause your tests to run faster. However, # if you change any configuration or code from libraries loaded h...
NetBeans IDE 7.2/7.3にRuby on Railsプラグインをインストールする手順を丁寧に説明します。 本稿が対象とする NetBeans のバージョンは 7.2 および 7.3 です。7.1については http://www.oiax.jp/rails/zakkan/how_to_install_rails_plugin_on_netbeans_7_1.html をご覧ください。「手順通りやったけどうまく行かなかった!」という方は、[email protected] までメールでお問い合わせください。また、「いちおうインストールできたけど、微妙に説明通...
Windows 8 で ExecJS::RuntimeError が出たときは この記事は『改訂新版 基礎Ruby on Rails』の読者サポートのために書かれたものです。 読者サポートページに戻る Windows 8で書籍に従って作業を進めると、31ページで「ExecJS::RuntimeError in Top#index」というエラーに遭遇する可能性があります。 この場合は、nodejs.org から Node.js をインストールすると問題が解消します。 なお、Node.js をインストールした後で、コマンドプロンプトを開き直してください。
Rails はエンタープライズの世界で主流になるか (2008/03/29) Rails 2.0 ベンチマーク (2008/03/30) テスト駆動開発とデバッグコード (2008/04/07) Git or Mercurial (2008/04/22) RESTful Ruby on Rails -- その美しさと難しさ (2008/04/23) RESTful Ruby on Rails -- 単数と複数 (2008/04/24) Rails のソースコードを読む (2008/05/02) sudo: no passwd entry for app! (Cap...
class PeopleController < ApplicationController def index @people = Person.all end def show @person = Person.find(params[:id]) end def new @person = Person.new end def edit @person = Person.find(params[:id]) end def create @person = Person.new(params[:person]) if @person.save redirect_...