Ruby on Rails をこれから始める人向けの情報 Ruby on Rails をこれから始めたいのですが、どんな本がおすすめですか?と聞かれたので、ちょっとまとめておきたいと思います。 » 僕が Ruby on Rails を絶賛する理由 - 僕は発展途上技術者 というエントリーを2007年に書きましたが、その後状況はいろいろと変わり、僕自身 iOS アプリや Android アプリを開発するようになったり、Web サービスでも Python on GAE を触るようになったりして、当時ほど Ruby on Rails 一色というわけではなくなりました。 また、Ruby on Rails の環境を自分の開発マシンに用意するのも » Mac OS X 10.8 Mountain Lion に Ruby on Rails 環境をセットアップする - 僕は発展途上技術者 で書いたように、
『るびま』は、Ruby に関する技術記事はもちろんのこと、Rubyist へのインタビューやエッセイ、その他をお届けするウェブ雑誌です。 Rubyist Magazine について 『Rubyist Magazine』、略して『るびま』は、日本 Ruby の会の有志による Rubyist の Rubyist による、Rubyist とそうでない人のためのウェブ雑誌です。 最新号 Rubyist Magazine 0058 号 バックナンバー Rubyist Magazine 0058 号 RubyKaigi 2018 直前特集号 Rubyist Magazine 0057 号 RubyKaigi 2017 直前特集号 Rubyist Magazine 0056 号 Rubyist Magazine 0055 号 Rubyist Magazine 0054 号 東京 Ruby 会議 11 直
7.0の時と同じ方が書いたブログ記事に、NetBeans 7.1にRuby on Railsプラグインをインストールする手順が紹介されていましたので、その内容を再構成して掲載します。 まず、http://jruby.org.s3.amazonaws.com/downloads/community-ruby/community-ruby_7_1_preview1.zip をダウンロードして、適当なディレクトリに展開しておきます。 そして、NetBeans 7.1を起動して、以下の手順でプラグインをインストールします。 メニューから[ツール]→[プラグイン]を選択 [ダウンロード済み]タブを選択 [プラグインの追加]ボタンをクリック ZIPファイルを展開したディレクトリの下のupdatesディレクトリにある、すべての.nbmファイルを選択(計25個) [OK]ボタンをクリック [インストール]
TODO: 順次v1.2に書き換える(Rails本の第2版を買ったから。v2.0は書籍に反映されたころにまだ興味があったら反映する) インストール(Windows) (1) Rubyのインストーラを入手 http://rubyinstaller.rubyforge.org 実行 → 「すべてのコンポーネント」を選択 (2) Railsのインストール gem install rails --include-dependencies ※ MySQLもインストールしておく http://dev.mysql.com アップデート gem update rails インストール(Linux) (1) yum install ruby rubygems (2) gem install rails -v 1.2.6 --include-dependencies -v 1.2?
DB更新クローラーなどの単体アプリケーション(Rails以外のアプリケーション)でもActiveRecordを用いてDB操作する方法です。 ActiveRecordを使用するのに必要なファイルは以下の通り ■RaisAppDir/config/boot ■RaisAppDir/config/environment これらを読み込み、 ■RaisAppDir/config/database.yml からDBへコネクションを張ると使用できます。 コードは #!/usr/local/bin/ruby #PATHは環境によって変更 require 'path/to/railsdir/config/boot' require 'path/to/railsdir/config/environment' #YAMLの読み込み:PATHは環境によって変更 dbconfig = YAML.load_file
Supercharge Your Web App Passenger has a myriad of features that are invaluable to today’s web apps and microservice APIs. You get these benefits (and more) by simply installing Passenger with Nginx or Apache. Learn how. Optimization Passenger was built with high performance and efficiency in mind. With Passenger’s zero-copy architecture, turbocaching and support for multiple concurrency models, y
これは地味に素晴らしいコミュニティなのでは。 Teach Me To Codeでは「こういうのどうやるの?」というリクエストを受けて、詳しい人がスクリーンキャストで回答する、というコミュニティだ。 まず質問ありき、というのが素晴らしい。オンデマンド型のスクリーンキャストサイト、といってもいいだろう。 もともとEricさんという人が一人で始めており、「自分は週に1回ぐらいしかできないけど、他の人も手伝ってくれるうれしい」と表明している点も好感が持てる。無理なく学びあえる空気が良いですな。 Rails専用のコミュニティではあるが、他の言語でも似たような動きが出てくればよいな、と思う。
先日のエントリーでも少し触れたが、Ruby on Railsの最大の問題点は、それが持つ「一見そのフレームワークがMVCの形をとりながら、MVCの最も大切なところを外している『えせMVC』である」点にある。MVC(Model View Controller)がなぜ必要かを根底の部分でちゃんとと意識せずにRailsアプリケーションを作ると、後々ひどい目に会うので注意が必要である。 その意味では「RailsでMVCを学ぶ」などもっての他だし、「JavaにもRailsと同じようなフレームワークを作って業務用アプリの開発を効率化しよう」などという発想もとても危険である。 ということで、今日はまずはMVCの解説から。 MVCの発想の根底には、「モジュール化と情報の隠蔽により、プログラムがスパゲッティ化するの(コード間の相互依存関係が複雑に入り込んでしまってにっちもさっちも行かない状態になること)を避
Google App Engine(GAE)の可能性はJavaをサポートしたことによってその可能性を飛躍的に向上させた。JavaVM上で実装された言語であれば何でも動作する。JRubyもその一つで、Ruby on RailsもGoogle App Engine上で動作する。 GAEのパワーを素早くゲットする とは言えやはりマイノリティだけに色々な準備が必要とされていた。そのため敬遠していた人も多いだろうが、Rails on GAEによって大きく舵を切ることになりそうだ。 今回紹介するオープンソース・ソフトウェアはRails on GAE、GAEでRuby on Railsを動かすためのプラグインだ。 Rails on GAEはRuby on RailsをGAEで動作させるために必要なタスクを予めインストールすることで、後は順番に従って進めるだけでJRuby on Railsができるようにな
少しおもしろいアイデアを思いついたので、某アワード向けに rails アプリケーションを作っています。 rails2.1.0 で新しく作ったアプリケーションに acts_as_taggable_redux を使用してタグを使おうと思い、 プラグインをインストールした後、rake タスクを実行するとエラーが出るので修正しました。 以下のように実行すると… rake acts_as_taggable:db:create --traceエラー発生。 rake aborted! uninitialized class variable @@configuration in Rails C:/ruby-1.8/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:19:in `configuration' C:/ruby-1.8/lib/ruby
インストール 一発! # ruby script/plugin install http://jpmobile.rubyforge.org/svn/tags/rel-0.0.2/jpmobile rel-0.0.2のところは適当にバージョン http://jpmobile.rubyforge.org/svn/tags/ ここらを覗いて最新をとってくればいいんじゃねかな ▲ ▼ 個体番号の取得 hoge = request.mobile.ident アクション内でこのように参照できる。 ※公式の説明ではrequest.identなっているがそれではエラーになる 取得できないことも考慮して hoge = request.mobile && request.mobile.ident こう書くといいかも ▲ ▼ GETパラメータへのセッションIDの付加 某大手キャリアの糞携帯がcookie
こんにちは。Ruby(とRails)を担当している石原です。 ソーシャル「OSを入れた後にインストールする10のアプリケーション」(仮)の開発の続きです。 今回は登録したアプリケーションに対してタグ付けできるようにして、タグクラウドを作ることを目標にします。 初見の方、よろしくお願いいたします。これまでのエントリーの一覧はこちらです ↓ つくるぶガイドブログ: Ruby on Rails を使ってひとりでサービスを作ってみよう つくるぶガイドブログ: ひとりサービスの雛型をつくる(リキッドレイアウト、GetText、Acts as Authenticated) つくるぶガイドブログ: Rails で楽々ソーシャルブックマークの仕組みを作る それでは、さっそく作っていきます。 acts_as_taggable_redux プラグインのインストール タグの各機能を簡単に実装するためにプラグイン
Ruby on Rails 7.1.3.4 RDOC_MAIN.md railties/RDOC_MAIN.md Last modified: 2024-06-04 18:21:34 +0000 Welcome to Rails What’s Rails? Rails is a web-application framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. Understanding the MVC pattern is key to understanding Rails. MVC divides your application into three laye
このエントリでは Ruby on Rails と MySQL を使って日本語の全文検索を行う方法を記述する。Ruby on Rails のバージョンは 2.0.2、MySQL のバージョンは 5.0.67、Tritonn のバージョンは 1.0.12、Hyper Estraier のバージョンは 1.4.10 を使用した。サンプルの文章データとして、あらゆる日本人にとって極めて身近な著作権切れ文章である『ドグラ・マグラ』と『黒死館殺人事件』を利用した。処理のために整形したデータは本エントリに添付しておく。またデータベースへアクセスするコードではマイグレーションを除きできるだけベンチマークを取るようにし、その結果は本エントリの最後に記載する。 ページネーション Rails でページネーションを実現する will_paginate という plugin は ActiveRecord に標準でつ
1. はじめに1.1. 背景 近年、スクリプト言語「Ruby」と、Rubyで書かれたWebアプリケーションフレームワーク「Ruby on Rails(以下、RoR)」が注目を集めています。 Ruby/RoRの開発はテキストエディタとコマンドラインツールがあればすぐに始めることができます。一方、Ruby/RoRの普及に合わせてテキストエディタとしての機能の他にデバッガ、WebサーバやDBサーバとの連携、バージョン管理などの機能を備えた統合開発環境(以下、IDE)が複数登場しています。 Ruby/RoR対応のIDEはJavaなど他言語のIDEと比較すると機能面や安定性にやや物足りなさがありますが、各IDEは活発に開発が行われており、実際の開発をサポートするレベルまで着実にバージョンアップを重ねています。1.2. 本稿の目的 Ruby/RoR対応のIDEを使用する場合、NetBeans、Ecli
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く