<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>Narju.com &#187; RoR</title>
	<atom:link href="http://narju.com/category/website/ror/feed" rel="self" type="application/rss+xml" />
	<link>http://narju.com</link>
	<description>最近面白い事がいえません。どうしたらよいでしょうか。</description>
	<lastBuildDate>Fri, 10 Jun 2011 08:12:06 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://narju.com/category/website/ror/feed" />
		<item>
		<title>emacsをrails仕様にカスタマイズ2</title>
		<link>http://narju.com/2009/05/739.html</link>
		<comments>http://narju.com/2009/05/739.html#comments</comments>
		<pubDate>Wed, 20 May 2009 03:57:20 +0000</pubDate>
		<dc:creator>narju</dc:creator>
				<category><![CDATA[RoR]]></category>
		<category><![CDATA[開発]]></category>

		<guid isPermaLink="false">http://narju.com/2009/05/739.html</guid>
		<description><![CDATA[git clone git://github.com/eschulte/rhtml.git  rinariにはsnippetが入っていないので yasnippet と Rails snippets をインストールします。 

...git clone git://github.com/eschulte/yasnippets-rails.git  これでrailsの開発環境が整いましたが、linum(行番号を表示機能)とelscreen(emacsにタブ機能)を追加します  


...rm ~/.emacs.d/elscreen-1.4.6.tar.gz  次に.emacsの設定に移ります。  


...	(setq default-buffer-file-coding-system 'utf-8) 	;;; base setting 	(setq line-number-mode t) ;;カーソル行番号表示 	(setq inhibit-startup-message t) ;;スタートアップメッセージ非表示 	(setq-default tab-width 4) ;;tab4文字 	(setq make-backup-files nil) ;;バックアップファイルを作らない 	(setq visible-bell t) ;;警告音無し 	(setq frame-title-format "%b") ;;タイトルにファイル名表示 	(display-time) ;;時計表示 	(auto-compression-mode t) ;;日本語info文字化け防止 	(global-hl-line-mode) ;;行ハイライト 	(tool-bar-mode nil) ;;ツールバー非表示 	(show-paren-mode 1) ;;対応括弧ハイライト 	 	;;; color 	(setq initial-frame-alist 	(append (list 	 '(width . ...  340) ;;X 表示位置 	) 	initial-frame-alist)) 	(setq default-frame-alist initial-frame-alist) 	(set-frame-parameter nil 'alpha 90 ) ;;windowの透明度設定 	 	;;; theme-monokai 	(custom-set-faces 	 '(default ((t (:stipple nil :background "#272822" :foreground "#F8F8F2" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 98 :width normal :family "outline-consolas")))) 	 '(cursor ((t (:background "#F8F8F2" :foreground "#272822")))) 	 '(font-lock-comment-face ((((class color) (min-colors 88) (background dark)) (:foreground "#75715E")))) 	 '(font-lock-function-name-face ((((class color) (min-colors 88) (background dark)) (:foreground "#A6E22E")))) 	 '(font-lock-keyword-face ((((class color) (min-colors 88) (background dark)) (:foreground "#F92672")))) 	 '(font-lock-preprocessor-face ((t (:inherit font-lock-builtin-face :foreground "#66d9ef")))) 	 '(font-lock-string-face ((((class color) (min-colors 88) (background dark)) (:foreground "#E6DB74")))) 	 '(font-lock-type-face ((((class color) (min-colors 88) (background dark)) (:foreground "#66d9ef")))) 	 '(font-lock-variable-name-face ((((class color) (min-colors 88) (background dark)) (:foreground "#FD971F")))) 	 '(region ((((class color) (min-colors 88) (background dark)) (:background "#49483E")))) 	 '(show-paren-match ((((class color) (background dark)) (:background "#3E3D32")))) 	 '(variable-pitch ((t (:family "DejaVu Sans"))))) 	 	(setq load-path 	(append 	(list 	(expand-file-name "~/.emacs.d/") 	) 	load-path))  	;; Interactively Do Things (highly recommended, but not strictly required) 	(require 'ido) 	(ido-mode t)  	;; Rinari 	(add-to-list 'load-path "~/.emacs.d/rinari") 	(require 'rinari)  	;;; rhtml-mode 	(add-to-list 'load-path "~/.emacs.d/rhtml") 	(require 'rhtml-mode) 	(add-hook 'rhtml-mode-hook 	(lambda () (rinari-launch))) 	;;; yasnippet]]></description>
			<content:encoded><![CDATA[<p>手元にmac環境しかありませんのでmacで話を進めます。<br />
まずはCarbon Emacsを<a href="http://homepage.mac.com/zenitani/emacs-j.html" target="_blank">ダウンロード</a><br />
次に<a href="http://github.com/eschulte/rinari/tree/master" target="_blank">rinari</a>をダウンロード<br />
gitコマンドを入れてない人は<br />
Macの人は<a href="http://www.macports.org/" target="_blank">mac ports</a>をインストールしてください</p>
<pre lang="code">
sudo port install git-core +gitweb +svn
</pre>
<p>GUIが良い人は<a href="http://porticus.alittledrop.com/" target="_blank">porticus</a>からでもgitを入れてください。<br />
さて、gitのインストールがすんでいる人はrinariとrhtml-mode(erbのハイライト)をインストールします。<br />
インストールする場所は何処でも良いのですがここではホームディレクトリ以下の~/.emacs.d/にインストールします</p>
<pre lang="code">
cd ~/.emacs.d
git clone git://github.com/eschulte/rinari.git
cd rinari
git submodule init
git submodule update
cd ~/.emacs.d
git clone git://github.com/eschulte/rhtml.git
</pre>
<p>rinariにはsnippetが入っていないので<a href="http://code.google.com/p/yasnippet/" target="_blank">yasnippet</a>と<a href="http://github.com/eschulte/yasnippets-rails/tree/master" target="_blank">Rails snippets</a>をインストールします。<br />
yasnippetのダウンロードページにはyasnippet-bundleとyasnippetがありますが<br />
今回はyasnippet-0.5.10.tar.bz2をダウンロード</p>
<pre lang="code">
cd ~/.emacs.d
curl -O http://yasnippet.googlecode.com/files/yasnippet-0.5.10.tar.bz2
tar jxf yasnippet-0.5.10.tar.bz2
cd yasnippet-0.5.10
mv * ../
cd ../
rm -rf yasnippet-0.5.10
rm yasnippet-0.5.10.tar.bz2
cd ~/.emacs.d/snippets
git clone git://github.com/eschulte/yasnippets-rails.git
</pre>
<p>これでrailsの<span class='wp_keywordlink_affiliate'><a href="http://narju.com/tag/%e9%96%8b%e7%99%ba" title="開発 の投稿をすべて表示" target="_blank">開発</a></span>環境が整いましたが、linum(行番号表示機能)とelscreen(タブ機能)を追加します</p>
<pre lang="code">
cd ~/.emacs.d/
curl -O http://stud4.tuwien.ac.at/~e0225855/linum/linum.el
curl -O ftp://ftp.morishima.net:21//pub/morishima.net/naoto/ElScreen/elscreen-1.4.6.tar.gz
tar xzvf elscreen-1.4.6.tar.gz
mv ~/.emacs.d/elscreen-1.4.6/elscreen.el ~/.emacs.d/
rm -rf ~/.emacs.d/elscreen-1.4.6
rm ~/.emacs.d/elscreen-1.4.6.tar.gz
</pre>
<p>次に.emacsの設定に移ります。</p>
<pre lang="code">
cd ~/
vi .emacs
</pre>
<p>なんでviなんだって話だと思うんですが、emacsにまだなれてなくて。。</p>
<pre lang="code">
;;; utf8
(set-language-environment "Japanese")
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-buffer-file-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)

;;; base setting
(setq line-number-mode t) ;;カーソル行番号表示
(setq inhibit-startup-message t) ;;スタートアップメッセージ非表示
(setq-default tab-width 4) ;;tab4文字
(setq make-backup-files nil) ;;バックアップファイルを作らない
(setq visible-bell t) ;;警告音無し
(setq frame-title-format "%b") ;;タイトルにファイル名表示
(display-time) ;;時計表示
(auto-compression-mode t) ;;日本語info文字化け防止
(global-hl-line-mode) ;;行ハイライト
(tool-bar-mode nil) ;;ツールバー非表示
(show-paren-mode 1) ;;対応括弧ハイライト

;;; color
(setq initial-frame-alist
(append (list
 '(width . 120) ;;フレームの幅
 '(height . 40) ;;フレームの高さ
 '(top . 0) ;;Y 表示位置
 '(left . 340) ;;X 表示位置
)
initial-frame-alist))
(setq default-frame-alist initial-frame-alist)
(set-frame-parameter nil 'alpha 90 ) ;;windowの透明度設定

;;; theme-monokai
(custom-set-faces
 '(default ((t (:stipple nil :background "#272822" :foreground "#F8F8F2" :inverse-video nil :box nil :strike-through nil <img src='http://narju.com/wp-includes/images/smilies/icon_surprised.gif' alt="icon surprised emacsをrails仕様にカスタマイズ2" class='wp-smiley' title="emacsをrails仕様にカスタマイズ2" /> verline nil :underline nil :slant normal :weight normal :height 98 :width normal :family "outline-consolas"))))
 '(cursor ((t (:background "#F8F8F2" :foreground "#272822"))))
 '(font-lock-comment-face ((((class color) (min-colors 88) (background dark)) (:foreground "#75715E"))))
 '(font-lock-function-name-face ((((class color) (min-colors 88) (background dark)) (:foreground "#A6E22E"))))
 '(font-lock-keyword-face ((((class color) (min-colors 88) (background dark)) (:foreground "#F92672"))))
 '(font-lock-preprocessor-face ((t (:inherit font-lock-builtin-face :foreground "#66d9ef"))))
 '(font-lock-string-face ((((class color) (min-colors 88) (background dark)) (:foreground "#E6DB74"))))
 '(font-lock-type-face ((((class color) (min-colors 88) (background dark)) (:foreground "#66d9ef"))))
 '(font-lock-variable-name-face ((((class color) (min-colors 88) (background dark)) (:foreground "#FD971F"))))
 '(region ((((class color) (min-colors 88) (background dark)) (:background "#49483E"))))
 '(show-paren-match ((((class color) (background dark)) (:background "#3E3D32"))))
 '(variable-pitch ((t (:family "DejaVu Sans")))))

(setq load-path
(append
(list
(expand-file-name "~/.emacs.d/")
)
load-path))

;; Interactively Do Things (highly recommended, but not strictly required)
(require 'ido)
(ido-mode t)

;; Rinari
(add-to-list 'load-path "~/.emacs.d/rinari")
(require 'rinari)

;;; rhtml-mode
(add-to-list 'load-path "~/.emacs.d/rhtml")
(require 'rhtml-mode)
(add-hook 'rhtml-mode-hook
(lambda () (rinari-launch)))

;;; yasnippet
(require 'yasnippet)
(yas/initialize)
(yas/load-directory "~/.emacs.d/snippets/rails-snippets")

;;; line-number
(require 'linum)
(global-linum-mode t)
(setq linum-format "%5d")

;;; elscreen
(require 'elscreen)
;; PrefixキーをC-zに割り当て
(if window-system
 (define-key elscreen-map "\C-z" 'iconify-or-deiconify-frame)
  (define-key elscreen-map "\C-z" 'suspend-emacs))
</pre>
<p>エラーが出るようであればpluginのパスを環境に合わせて変えてみてください。<br />
emacsを立ち上げて<br />
<img src="http://narju.com/wp-content/uploads/2009/05/emacs.png" width="480" height="341" alt="emacs emacsをrails仕様にカスタマイズ2"  title="emacsをrails仕様にカスタマイズ2" /><br />
こんな画面になれば成功です。<br />
C-c ; wでmongrel起動<br />
C-c C-cでmongrel終了<br />
その他キーバインドはまた次の機会にでも書きたいと思います。<br />
間違い等がありましたら教えて頂けると助かります。</p>
]]></content:encoded>
			<wfw:commentRss>http://narju.com/2009/05/739.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://narju.com/2009/05/739.html" />
	</item>
		<item>
		<title>emacsをrails仕様にカスタマイズ</title>
		<link>http://narju.com/2009/05/736.html</link>
		<comments>http://narju.com/2009/05/736.html#comments</comments>
		<pubDate>Tue, 19 May 2009 16:02:59 +0000</pubDate>
		<dc:creator>narju</dc:creator>
				<category><![CDATA[RoR]]></category>
		<category><![CDATA[開発]]></category>

		<guid isPermaLink="false">http://narju.com/2009/05/736.html</guid>
		<description><![CDATA[さて、日々の開発はtextmateで行っているのですが、emacsはC++のコーディングにしか使った事なく、ほとんど使い方がわからなかったのですが、rinariを使うとかなりイケテルとの事でなんとなくがんがん入れてみました。   

...'(default ((t (:stipple nil :background "#272822" :foreground "#F8F8F2" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 98 :width normal :family "outline-consolas"))))


...'(font-lock-type-face ((((class color) (min-colors 88) (background dark)) (:foreground "#66d9ef"))))


'(font-lock-variable-name-face ((((class color) (min-colors 88) (background dark)) (:foreground "#FD971F"))))


...I get so tired of searching for programming editor color schemes  またrails用に ido  rinari   yasnippet + rails-snippets (スニペット)  linum (行表示)  elscreen (tab表示)  ruby-block (対応ブロック表示) を使っています。]]></description>
			<content:encoded><![CDATA[<p>さて、日々の<span class='wp_keywordlink_affiliate'><a href="http://narju.com/tag/%e9%96%8b%e7%99%ba" title="開発 の投稿をすべて表示" target="_blank">開発</a></span>はtextmateで行っているのですが、何となくemacsくらい使えないとだめかなぁと思い立ちCarbon Emacsをダウンロード<br />
emacsはC++のコーディングにしか使った事なく、ほとんど使い方がわからなかったのですが、rinariを使うとかなりイケテルとの事でなんとなく入れてみました。<br />
<img src="http://narju.com/wp-content/uploads/2009/05/emacs.png" width="480" height="341" alt="emacs emacsをrails仕様にカスタマイズ"  title="emacsをrails仕様にカスタマイズ" /><br />
textmateでも使っているmonokaiというテーマのパクリです。<br />
.emacs.elにでも貼付けてください。</p>
<pre lang="code">
(custom-set-faces
'(default ((t (:stipple nil :background "#272822" :foreground "#F8F8F2" :inverse-video nil :box nil :strike-through nil <img src='http://narju.com/wp-includes/images/smilies/icon_surprised.gif' alt="icon surprised emacsをrails仕様にカスタマイズ" class='wp-smiley' title="emacsをrails仕様にカスタマイズ" /> verline nil :underline nil :slant normal :weight normal :height 98 :width normal :family "outline-consolas"))))
'(cursor ((t (:background "#F8F8F2" :foreground "#272822"))))
'(font-lock-comment-face ((((class color) (min-colors 88) (background dark)) (:foreground "#75715E"))))
'(font-lock-function-name-face ((((class color) (min-colors 88) (background dark)) (:foreground "#A6E22E"))))
'(font-lock-keyword-face ((((class color) (min-colors 88) (background dark)) (:foreground "#F92672"))))
'(font-lock-preprocessor-face ((t (:inherit font-lock-builtin-face :foreground "#66d9ef"))))
'(font-lock-string-face ((((class color) (min-colors 88) (background dark)) (:foreground "#E6DB74"))))
'(font-lock-type-face ((((class color) (min-colors 88) (background dark)) (:foreground "#66d9ef"))))
'(font-lock-variable-name-face ((((class color) (min-colors 88) (background dark)) (:foreground "#FD971F"))))
'(region ((((class color) (min-colors 88) (background dark)) (:background "#49483E"))))
'(show-paren-match ((((class color) (background dark)) (:background "#3E3D32"))))
'(variable-pitch ((t (:family "DejaVu Sans")))))
</pre>
<p>テーマは下記ページからの引用です。<br />
<a href="http://jaguilar.posterous.com/i-get-so-tired-of-searching-fo" target="_blank">I get so tired of searching for programming editor color schemes</a><br />
いやあああつかいやすいわあああああ！<br />
textmateとはまた違う操作感。textmateを使ってなかったら100%こちらを使うでしょうね！<br />
ということでrails用にって何をって話で以下のplugin？とか入れてます。<br />
ido<br />
<a href="http://rinari.rubyforge.org/">rinari</a><br />
<a href="http://code.google.com/p/yasnippet/">yasnippet</a>+<a href="http://github.com/eschulte/yasnippets-rails/tree/master" target="_blank">rails-snippets</a>(スニペット)<br />
<a href="http://stud4.tuwien.ac.at/~e0225855/linum/linum.html" target="_blank">linum</a>(行表示)<br />
<a href="http://www.morishima.net/~naoto/software/elscreen/index.php.ja" target="_blank">elscreen</a>(tab表示)<br />
<a href="http://www.emacswiki.org/emacs/ruby-block.el" target="_blank">ruby-block</a>(対応ブロック表示)<br />
を使っています。反応があれば、emacs.elとpluginの設定でも次回書きますか。<br />
あぁ。emacsよくわかってないので小汚くても良ければですが。</p>
<p><a href="http://narju.com/2009/05/739.html">emacsをrails仕様にカスタマイズ2</a>へ続く</p>
]]></content:encoded>
			<wfw:commentRss>http://narju.com/2009/05/736.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://narju.com/2009/05/736.html" />
	</item>
		<item>
		<title>Ruby on Rails 2.3 をMacOSXにインストール</title>
		<link>http://narju.com/2009/04/614.html</link>
		<comments>http://narju.com/2009/04/614.html#comments</comments>
		<pubDate>Sun, 26 Apr 2009 14:45:21 +0000</pubDate>
		<dc:creator>narju</dc:creator>
				<category><![CDATA[RoR]]></category>

		<guid isPermaLink="false">http://narju.com/2009/04/614.html</guid>
		<description><![CDATA[If I run gems list it does not show mysql, so I tried to run the gem install and got the following: ERROR: Error installing mysql: ERROR: Failed to build gem native extension.

...checking for mysql_query() in -lmysqlclient... no


...checking for mysql_query() in -lmysqlclient... no


...checking for mysql_query() in -lmysqlclient... no


...checking for mysql_query() in -lmysqlclient... no  rails 2.2?]]></description>
			<content:encoded><![CDATA[<p>さて、我が家のMac book proのHDDが飛んだ為にrailsを再インストール/アップデートした際のメモ。<br />
Mac OSX 10.5.6でのお話。</p>
<p>まずはgem本体をupdate</p>
<pre lang="bash">
$ sudo gem update --system
</pre>
<p>インストールされている全てをupdate</p>
<pre lang="bash">
$ sudo gem update
</pre>
<p>次にMySQLをインストール。MAMPと迷った物の若干更新が遅いようなのでMySQL.comよりMac用MySQLserverをDL。<br />
が、罠が。まず一つ目。<br />
なにも考えずMac OS X 10.5 (x86_64)をダウントードしたのですが、まぁなんだかんだでエラーが出ます。<br />
特に理由が無ければMac OS X 10.5 (x86)を使いましょう。<br />
<a href="http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg" target="_blank">Mac OS X 10.5 (x86)</a></p>
<p><span id="more-614"></span>
<p>二つ目の罠。<br />
意気揚々とrake db:migrateとするもののエラー。</p>
<pre lang="bash">
$ db:migrate
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!If I run gems list it does not show mysql, so I tried to run the gem install and got the following:ERROR: Error installing mysql:ERROR: Failed to build gem native extension./System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
</pre>
<p>rails 2.2?からMySQLのドライバーを別途インストールする必要があるとの事。はぁ。</p>
<pre lang="bash">
$ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
</pre>
<p>とりあえず。rails2.3でsampleを動かさねばと、せっかくMySQLを入れたので、MySQLで行きます。</p>
<pre lang="bash">
$ rails bookmark -d mysql
create
create  app/controllers
create  app/helpers
create  app/models
create  app/views/layouts
create  config/environments
create  config/initializers
create  config/locales
create  db
create  doc
create  lib
create  lib/tasks
create  log
create  public/images
create  public/javascripts
create  public/stylesheets
create  script/performance
create  test/fixtures
create  test/functional
create  test/integration
create  test/performance
create  test/unit
create  vendor
create  vendor/plugins
create  tmp/sessions
create  tmp/sockets
create  tmp/cache
create  tmp/pids
create  Rakefile
create  README
create  app/controllers/application_controller.rb
create  app/helpers/application_helper.rb
create  config/database.yml
create  config/routes.rb
create  config/locales/en.yml
create  config/initializers/backtrace_silencers.rb
create  config/initializers/inflections.rb
create  config/initializers/mime_types.rb
create  config/initializers/new_rails_defaults.rb
create  config/initializers/session_store.rb
create  config/environment.rb
create  config/boot.rb
create  config/environments/production.rb
create  config/environments/development.rb
create  config/environments/test.rb
create  script/about
create  script/console
create  script/dbconsole
create  script/destroy
create  script/generate
create  script/runner
create  script/server
create  script/plugin
create  script/performance/benchmarker
create  script/performance/profiler
create  test/test_helper.rb
create  test/performance/browsing_test.rb
create  public/404.html
create  public/422.html
create  public/500.html
create  public/index.html
create  public/favicon.ico
create  public/robots.txt
create  public/images/rails.png
create  public/javascripts/prototype.js
create  public/javascripts/effects.js
create  public/javascripts/dragdrop.js
create  public/javascripts/controls.js
create  public/javascripts/application.js
create  doc/README_FOR_APP
create  log/server.log
create  log/production.log
create  log/development.log
create  log/test.log
$ cd Bookmark
</pre>
<p>はいはい、サクサクとフィールドを追加。</p>
<pre lang="bash">
$ script/generate scaffold bookmark name:string url:string
exists  app/models/
exists  app/controllers/
exists  app/helpers/
create  app/views/bookmarks
exists  app/views/layouts/
exists  test/functional/
exists  test/unit/
create  test/unit/helpers/
exists  public/stylesheets/
create  app/views/bookmarks/index.html.erb
create  app/views/bookmarks/show.html.erb
create  app/views/bookmarks/new.html.erb
create  app/views/bookmarks/edit.html.erb
create  app/views/layouts/bookmarks.html.erb
create  public/stylesheets/scaffold.css
create  app/controllers/bookmarks_controller.rb
create  test/functional/bookmarks_controller_test.rb
create  app/helpers/bookmarks_helper.rb
create  test/unit/helpers/bookmarks_helper_test.rb
route  map.resources :bookmarks
dependency  model
exists    app/models/
exists    test/unit/
exists    test/fixtures/
create    app/models/bookmark.rb
create    test/unit/bookmark_test.rb
create    test/fixtures/bookmarks.yml
create    db/migrate
create    db/migrate/XXXXXXXXXX_create_bookmarks.rb
</pre>
<p>次に「bookmark_development」というDBを作成して。</p>
<pre lang="bash">
$ rake db:migrate
(in /Users/XXXXXXX/Sites/bookmark)
==  CreateBookmarks: migrating ================================================
-- create_table(:bookmarks)
-&gt; 0.0893s
==  CreateBookmarks: migrated (0.0896s) =======================================
</pre>
<p>起動です。</p>
<pre lang="bash">
$ script/server
</pre>
<p>http://localhost:3000/bookmarksを確認して終了。<br />
おつかれさまでした。</p>
]]></content:encoded>
			<wfw:commentRss>http://narju.com/2009/04/614.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://narju.com/2009/04/614.html" />
	</item>
	</channel>
</rss>

