RubyRails_info
の編集
index.php?RubyRails_info
[
トップ
] [
編集
|
差分
|
履歴
|
添付
|
リロード
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
-- 雛形とするページ --
(no template pages)
#contents(); *** PC(WIndowsa Xp) 環境へのセットアップ [#hfbb4d8f] - [[My SQL 5.0:http://dev.mysql.com/downloads/]] のインストール ------> &ref(mysql-essential-5.0.37-win32.msi,center,My SQL binary package); -- root パスワード = administrator - [[One Click Ruby パッケージ:http://rubyinstaller.rubyforge.org/wiki/wiki.pl]] (これが ri、gems が最初から入っていて使いやすい) -----> &ref(ruby186-25.exe); - Rails のインストール ( One Click Ruby に含まれる gem を利用する ) C:\ gem install rails --include-dependencies - Eclipse による統合環境のインストール ・・・・・ [[別ページ>EclipseSetup]] 参照 -- 本体のインストール (subversion サポートは必須) -- RDT(Ruby 開発用のプラグイン)のインストール -- Rad Rails(Rails 開発用のプラグイン)のインストール *** インストール (gems を使ったインストール) [#d6fe7f5a] - gems 自体の更新 [root@charisma rails]# gem update --system Updating RubyGems... - rails のインストール [root@charisma rails]# gem install rails --include-dependencies Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed rails-1.2.2 *** インストール (yum を使ったインストール) [#s0cfc95e] - &color(red){Fedora5 では下記の ruby-mysql が最初からインストールされていないため嵌まった!}; [munakata@charisma yellowpage]$ sudo yum install ruby-mysql* ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: ruby-mysql i386 2.7-8.fc5 extras 44 k Installed: ruby-mysql.i386 0:2.7-8.fc5 *** インストールの確認 [#bb940a3c] [munakata@charisma yellowpage]$ gem list --local *** LOCAL GEMS *** actionmailer (1.3.2) Service layer for easy email delivery and testing. actionpack (1.13.2) Web-flow and rendering framework putting the VC in MVC. actionwebservice (1.2.2) Web service support for Action Pack. activerecord (1.15.2) Implements the ActiveRecord pattern for ORM. activesupport (1.4.1) Support and utility classes used by the Rails framework. rails (1.2.2) Web-application framework with template engine, control-flow layer, and ORM. rake (0.7.1) Ruby based make-like utility. rubygems-update (0.9.2) RubyGems Update GEM sources (0.0.1) This package provides download sources for remote gem installation *** プロジェクトの生成 [#k5c70859] [munakata@charisma rails]$ rails newproject *** 文字コードセットの設定 [#l2094b8d] - config/environment.rb # Be sure to restart your web server when you modify this file. $KCODE = 'u' - app/controllers/application.rb 4 class ApplicationController < ActionController::Base 5 # Pick a unique cookie name to distinguish our session data from others' 6 session :session_key => '_yellowpage_session_id' 7 before_filter :set_charset 8 private 9 def set_charset 10 headers['Content-Type'] = "text/html; charset=utf-8" 11 end 12 end *** [#h8239cbd]
タイムスタンプを変更しない
#contents(); *** PC(WIndowsa Xp) 環境へのセットアップ [#hfbb4d8f] - [[My SQL 5.0:http://dev.mysql.com/downloads/]] のインストール ------> &ref(mysql-essential-5.0.37-win32.msi,center,My SQL binary package); -- root パスワード = administrator - [[One Click Ruby パッケージ:http://rubyinstaller.rubyforge.org/wiki/wiki.pl]] (これが ri、gems が最初から入っていて使いやすい) -----> &ref(ruby186-25.exe); - Rails のインストール ( One Click Ruby に含まれる gem を利用する ) C:\ gem install rails --include-dependencies - Eclipse による統合環境のインストール ・・・・・ [[別ページ>EclipseSetup]] 参照 -- 本体のインストール (subversion サポートは必須) -- RDT(Ruby 開発用のプラグイン)のインストール -- Rad Rails(Rails 開発用のプラグイン)のインストール *** インストール (gems を使ったインストール) [#d6fe7f5a] - gems 自体の更新 [root@charisma rails]# gem update --system Updating RubyGems... - rails のインストール [root@charisma rails]# gem install rails --include-dependencies Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed rails-1.2.2 *** インストール (yum を使ったインストール) [#s0cfc95e] - &color(red){Fedora5 では下記の ruby-mysql が最初からインストールされていないため嵌まった!}; [munakata@charisma yellowpage]$ sudo yum install ruby-mysql* ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: ruby-mysql i386 2.7-8.fc5 extras 44 k Installed: ruby-mysql.i386 0:2.7-8.fc5 *** インストールの確認 [#bb940a3c] [munakata@charisma yellowpage]$ gem list --local *** LOCAL GEMS *** actionmailer (1.3.2) Service layer for easy email delivery and testing. actionpack (1.13.2) Web-flow and rendering framework putting the VC in MVC. actionwebservice (1.2.2) Web service support for Action Pack. activerecord (1.15.2) Implements the ActiveRecord pattern for ORM. activesupport (1.4.1) Support and utility classes used by the Rails framework. rails (1.2.2) Web-application framework with template engine, control-flow layer, and ORM. rake (0.7.1) Ruby based make-like utility. rubygems-update (0.9.2) RubyGems Update GEM sources (0.0.1) This package provides download sources for remote gem installation *** プロジェクトの生成 [#k5c70859] [munakata@charisma rails]$ rails newproject *** 文字コードセットの設定 [#l2094b8d] - config/environment.rb # Be sure to restart your web server when you modify this file. $KCODE = 'u' - app/controllers/application.rb 4 class ApplicationController < ActionController::Base 5 # Pick a unique cookie name to distinguish our session data from others' 6 session :session_key => '_yellowpage_session_id' 7 before_filter :set_charset 8 private 9 def set_charset 10 headers['Content-Type'] = "text/html; charset=utf-8" 11 end 12 end *** [#h8239cbd]
テキスト整形のルールを表示する
添付ファイル:
ruby186-25.exe
35件
[
詳細
]
mysql-essential-5.0.37-win32.msi
24件
[
詳細
]