The domain name brass.to is being parked on Park.io. Contact the domain owner to make an offer right now...
ActsAsTaggableRedux ============= Allows for user owned tags to be added to multiple classes, and makes tags easier to work with. Prerequisites ======= Install Edge Rails before you get started so you get RESTful routing. ActsAsTaggableRedux depends on database tables to store tagging information. Create the migration for these tables with this command: rake acts_as_taggable:db:create Then run the
this page has too many (some contradicting) information, yeah? can someone clean it up? ——- sorry to top-post, but it should be known that someone named josh peek has a repository of this along w/ a broken migration file, and an MIT license under his name (why is he claiming copyright, exactly? does one get a copyright for tweaking DHH code?). if you get his copy it won’t work. his tests also hav
NasuaはRuby on Railsで作ったメモ帳WEBアプリです。って今ではすっかりRailsな話題を取り上げるだけとなってしまいました。。 以前に gem install acts_as_taggable でインストールしたものを試したことがあったんですが、今度はRailsの プラグイン版 を試してみます。 Plugin だとvendor/の下にインストールされるのでほかのアプリにも影響がででないのでできればこちらを使いたいと思います。 インストール script/plubin install acts_as_taggable DBスキーマの追加 プラグインをインストーしただけではDBにテーブルは作成されません。自分で作成するひつようがあります。 まず migrationを実行します。 script/generate migration add_tag_support 生成されたファ
http://dema.ruby.com.br/articles/2005/08/27/easy-tagging-with-rails 今流行のtag付け。最近のWebアプリケーションはネコも杓子もタグ!とりあえず便利そうだから付けとけ!って感じでどうでもいいところまでタグが実装されてたりすることもあって何だかなぁ、って感じだったりもするんだけどそれは置いといて。 どんな風に使えるのかというと、上記記事に書いてあるまんまで class Photo < ActiveRecord::Base acts_as_taggable # これ一行追加するだけ end elephant = Photo.find(4437) # idが4437のphotosテーブルのデータを取得 elephant.tag 'zoo animals nature' # tagをspace区切りで設定。なおphotosテーブ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く