<?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/"
	>

<channel>
	<title>Tipset &#187; Rails/Merb</title>
	<atom:link href="http://hasumi.info/~h2/tag/railsmerb/feed/" rel="self" type="application/rss+xml" />
	<link>http://hasumi.info/~h2</link>
	<description>MacやiPhone/iPod Touch関連のTipsを書くハズが発散してるページ</description>
	<lastBuildDate>Thu, 04 Mar 2010 16:52:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ruby World Conference 2009 2日目</title>
		<link>http://hasumi.info/~h2/2009/09/13/ruby-world-conference-2009-2%e6%97%a5%e7%9b%ae/</link>
		<comments>http://hasumi.info/~h2/2009/09/13/ruby-world-conference-2009-2%e6%97%a5%e7%9b%ae/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 15:02:03 +0000</pubDate>
		<dc:creator>h2</dc:creator>
				<category><![CDATA[ひとりごと]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Rails/Merb]]></category>
		<category><![CDATA[Ruby/JRuby]]></category>

		<guid isPermaLink="false">http://hasumi.info/~h2/?p=1247</guid>
		<description><![CDATA[なんと &#8220;ruby world conference&#8221; でググると公式サイトを差し置いて，このサイトがトップに！？
今は修正？されてますが，びっくりした〜
で，2日目
2日目はTech Day？で [...]]]></description>
			<content:encoded><![CDATA[<p>なんと &#8220;ruby world conference&#8221; でググると公式サイトを差し置いて，このサイトがトップに！？</p>
<p>今は修正？されてますが，びっくりした〜</p>
<p>で，2日目<br />
2日目はTech Day？でテクニカルな話題中心でした</p>
<p>朝はまつもとさんの基調講演「未来へのRuby」<br />
まつもとさんが子供の頃にお父さんから与えられた肥後守を例に，<br />
「人間は信頼されるから伸びる」<br />
「Rubyはユーザを信頼する言語です」<br />
そして某G調査機関によると，他の言語に比べてRubyを愛していると書いているブログ？はかなり多いのだとか<br />
日本語で言うのは恥ずかしいとのことでしたが，「Rubyは愛され言語 (beloved)」「Rubyは愛である」「愛は未来をつくる」 とのこと<br />
本当にいい話でした<br />
あと50年はRubyを作り続けたいとのことなので，当分Rubyは安泰ですね</p>
<p>つづいては，Jeremy Kemperの「Rails3:Convergent evolution」<br />
なんでもRails3 on 1.9はこれまでの3倍以上の高速化が期待できるようでとても楽しみ！！<br />
Railsも結構変化が激しくて，たまにRailsな人にはついてくのが大変なフレームワークだが，着々と進化している<br />
Q&#038;Aで誰かが，「これからもRubyは変わって行くと思うけどなんか言いたいことある？」的な質問をされていたが，「どんどんやればいい，問題があればRailsを修正するだけ」だってｗ<br />
スライドがとても印象的でした〜</p>
<p><a href="http://hasumi.info/~h2/wp-content/uploads/2009/09/rwc2009_2_1.jpg"><img src="http://hasumi.info/~h2/wp-content/uploads/2009/09/rwc2009_2_1-150x150.jpg" alt="rwc2009_2_1" title="rwc2009_2_1" width="150" height="150" class="alignnone size-thumbnail wp-image-1254" /></a> <a href="http://hasumi.info/~h2/wp-content/uploads/2009/09/rwc2009_2_2.jpg"><img src="http://hasumi.info/~h2/wp-content/uploads/2009/09/rwc2009_2_2-150x150.jpg" alt="rwc2009_2_2" title="rwc2009_2_2" width="150" height="150" class="alignnone size-thumbnail wp-image-1255" /></a> <a href="http://hasumi.info/~h2/wp-content/uploads/2009/09/rwc2009_2_3.jpg"><img src="http://hasumi.info/~h2/wp-content/uploads/2009/09/rwc2009_2_3-150x150.jpg" alt="rwc2009_2_3" title="rwc2009_2_3" width="150" height="150" class="alignnone size-thumbnail wp-image-1256" /></a></p>
<p>お昼から<br />
笹田先生が登場するも，なんか時間が30分しかなくて技術的な話はかなり省かれてました・・・<br />
セミコルーチンなんかはバッサリとｗ<br />
それから・・・笹田研にはRuby使いがいないそうで<br />
恐れ多くてなかなかRuby使ってますって言えないんでは？</p>
<p>続いて頃末和義氏によるIronRuby<br />
JRubyはJavaの資産を活用できるというところに存在意義がある気がするけど，IronRubyの存在価値って何なんだろう？<br />
mono上でも動きますとか言われても，monoを使うような環境なら普通にMRIでよくないか？<br />
その辺がもっと聞きたかったなぁ〜<br />
まぁMSとして話せないのかも知れないが・・・</p>
<p>次は，Charles NutterとThomas Enebo<br />
がっ！？ここでトラブル発生！！<br />
プロジェクターにつながらない<br />
結局は変換コネクタが故障していた模様<br />
Macの変換コネクタはどんどんチャチくなって壊れやすくなってる<br />
突然ねこび〜んが登場したり，JRuby on Androidのデモがあったりとてもおもしろかった<br />
以前福岡に来た時にカネウチさんがサインをプレゼントしてたが，Thomasは本当にねこび〜んが好きなようだ<br />
Q&#038;AでJRuby on Androidのリリース日が決まったのは爆笑</p>
<p><a href="http://hasumi.info/~h2/wp-content/uploads/2009/09/rwc2009_2_4.jpg"><img src="http://hasumi.info/~h2/wp-content/uploads/2009/09/rwc2009_2_4-150x150.jpg" alt="rwc2009_2_4" title="rwc2009_2_4" width="150" height="150" class="alignnone size-thumbnail wp-image-1257" /></a> <a href="http://hasumi.info/~h2/wp-content/uploads/2009/09/rwc2009_2_5.jpg"><img src="http://hasumi.info/~h2/wp-content/uploads/2009/09/rwc2009_2_5-150x150.jpg" alt="rwc2009_2_5" title="rwc2009_2_5" width="150" height="150" class="alignnone size-thumbnail wp-image-1258" /></a> <a href="http://hasumi.info/~h2/wp-content/uploads/2009/09/rwc2009_2_6.jpg"><img src="http://hasumi.info/~h2/wp-content/uploads/2009/09/rwc2009_2_6-150x150.jpg" alt="rwc2009_2_6" title="rwc2009_2_6" width="150" height="150" class="alignnone size-thumbnail wp-image-1259" /></a></p>
<p>そしてRubiniusのEvan Phoenix<br />
llvmやJITを利用してって話だったと思います・・・<br />
もっと英語を勉強せんといかんね〜<br />
Ruby on Rubyにチャレンジなんてすごいなぁ</p>
<p>最後はB会場に移動<br />
クックパッドの橋本さん<br />
「ベストなコトをみつけるための３つの輪」<br />
「ユーザの要求に基づいたゴール設計」<br />
「スケジュール決定における3分割の法則」<br />
「ものづくり3原則」<br />
などなど，クックパッドでのサービス企画・開発を中心とした話でした<br />
Ruby的な話は最後の「Railsに乗る」くらいかなぁｗ</p>
]]></content:encoded>
			<wfw:commentRss>http://hasumi.info/~h2/2009/09/13/ruby-world-conference-2009-2%e6%97%a5%e7%9b%ae/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merbのインストール</title>
		<link>http://hasumi.info/~h2/2009/06/24/merb%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/</link>
		<comments>http://hasumi.info/~h2/2009/06/24/merb%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 03:51:47 +0000</pubDate>
		<dc:creator>h2</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[Rails/Merb]]></category>
		<category><![CDATA[Ruby/JRuby]]></category>

		<guid isPermaLink="false">http://hasumi.info/~h2/?p=830</guid>
		<description><![CDATA[Merbは使ったことなかったんやけど，土曜の勉強会でやるらしいのでインストールしてみた
まずgemを最新にしてから，Merbをインストール

% sudo gem install rubygems-update
% su [...]]]></description>
			<content:encoded><![CDATA[<p>Merbは使ったことなかったんやけど，土曜の勉強会でやるらしいのでインストールしてみた</p>
<p>まずgemを最新にしてから，Merbをインストール</p>
<pre class="brush: text;">
% sudo gem install rubygems-update
% sudo update_rubygems
% sudo gem install merb
</pre>
<p>ここからは，<a href="http://wiki.merbivore.com/howto/gettingstarted/firstapp">チュートリアル</a>を見ながらアプリを作ってみる</p>
<pre class="brush: text;">
% merb-gen app my-first-app
</pre>
<p>次は，リソースの作成（スペースを入れてはいけないので注意）</p>
<pre class="brush: text;">
% merb-gen resource article title:string,content:text
</pre>
<p>なんかdata_objectのgemがないと怒られる</p>
<pre class="brush: text;">
Loading init file from /Volumes/Home/h2/Merb/my-first-app/config/init.rb
Loading /Volumes/Home/h2/Merb/my-first-app/config/environments/development.rb
 ~
 ~ FATAL: The gem data_objects (= 0.9.11, runtime), [] was not found
 ~
</pre>
<p>調べてみると確かにインストールされてるのは，0.9.12だった</p>
<pre class="brush: text;">
% gem search data_objects -l
*** LOCAL GEMS ***
data_objects (0.9.12)
</pre>
<p>ので，config/dependencies.rb の4行目を編集してやる</p>
<pre class="brush: text;">
do_gems_version   = &quot;0.9.11&quot;
=&gt;
do_gems_version   = &quot;0.9.12&quot;
</pre>
<p>再度リソースを作成するとうまくいったので，DBのマイグレート</p>
<pre class="brush: text;">
% rake db:automigrate
</pre>
<p>最後にサーバの起動</p>
<pre class="brush: text;">
% merb &amp;
</pre>
<p>ブラウザで /articles にアクセスして確認<br />
このままだとドキュメントルートにアクセスするとエラーになるのでリダイレクトされるようにしてみる<br />
config/router.rb の最後を変更</p>
<pre class="brush: text;">
match('/').to(:controller =&gt; 'whatever', :action =&gt;'index')
=&gt;
match('/').to(:controller =&gt; 'articles', :action =&gt;'index')
</pre>
<p>変更を保存したらサーバを再起動しなくても反映されているので確認</p>
<p>ってな感じで，ぱっと見た感じでは多少コマンドが違うもののほとんどRailsと同じだった</p>
]]></content:encoded>
			<wfw:commentRss>http://hasumi.info/~h2/2009/06/24/merb%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
