まず、gem search で表示されるライブラリをアンインストールした後、次を参照してを参考にして、/usr/local/binを消しとばした。 rubyをソースからインストール→アンインストール - 今日も元気にlinux - mylinuxグループ 続いて、こちらを参考にしてMacPortsを再インストール。 http://lapangan.net/darwinports/index.php?TheMacPortsWiki%2FInstallingMacPorts The MacPorts Project -- Home http://ruby.hoopn.net/?eid=1096450 rubygemsをインストールする際はこちらを参照 MacPortsを使ったRuby/Railsのインストール - たまに書くメモ http://ja.verbmode.net/2009/02/0
Nokogiri parses and searches XML/HTML very quickly, and also has correctly implemented CSS3 selector support as well as XPath support. Parsing a document returns either a Nokogiri::XML::Document, or a Nokogiri::HTML::Document depending on the kind of document you parse. Here is an example: require 'nokogiri' require 'open-uri' # Get a Nokogiri::HTML:Document for the page we’re interested in... doc
http://mechanize.rubyforge.org/ http://github.com/tenderlove/mechanize/tree/master DESCRIPTION The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, can follow links, and submit forms. Form fields can be populated and submitted. Mechanize also keeps track of the sites that you have visited as a history. Dependen
rails開発環境を整える EclipseならRadRails Emacsならrails.el Vimならrails.vim rails.vimチートシート 資料 逆引きクイックリファレンスを用意する Railsチートシートを印刷する。 config/database.rb 実験する場合はSqlite3で大丈夫 サーバ apacheとpassenger(mod_rails) DB :conditions => ["hoge > ? AND hoge < ?", foo, bar]でインジェクション対策 :conditions => ["created_at > ?", 1.week.ago.utc]で一週間以内に作成されたものを検索 model.created_at.to_s(:long)等で整形してくれる。カスタマイズも可能。 Rubyの1.8.6の最新を入れる 1.8.5と1.8.6の
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
# File activerecord/lib/active_record/validations/absence.rb, line 20 def validates_absence_of(*attr_names) validates_with AbsenceValidator, _merge_attributes(attr_names) end Validates whether the associated object or objects are all valid. Works with any kind of association. class Book < ActiveRecord::Base has_many :pages belongs_to :library validates_associated :pages, :library end WARNING: This
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く