Feed on
Posts
Comments

Category Archive for 'Ruby on Rails'

IEむかつく。
CSS崩れまくり。
CSSがおかしいせいでGoolgeMapも表示してくれないし。
IEをOutOf眼中で作っていたせいではあるのですが、
その対応のために時間が取られるのはどう考えてもおかしい。
そう思 [...]

  • hatena
  • livedoor
  • google
  • yahoo
  • del.icio.us
  • Digg

Read Full Post »

Build Your Own Ruby on Rails Web Application
この本が
http://www.sitepoint.com/books/rails1/freebook.php
ここからメールア [...]

  • hatena
  • livedoor
  • google
  • yahoo
  • del.icio.us
  • Digg

Read Full Post »

Railsでの:counter_cache

Railsでの:counter_cacheは保存すれば勝手にカウンター値を追加してくれる優れもの。
class Post < ActiveRecord::Base
belongs_to :user, :count [...]

  • hatena
  • livedoor
  • google
  • yahoo
  • del.icio.us
  • Digg

Read Full Post »

建築とその設計者の関係をhas_many :thorughでつないでたんですが、複数の設計者を順不同ではなく決まった順番に並べたかったので、その順番を結合テーブルにフィールド(jyunjyo)つくって つないでたんですが [...]

  • hatena
  • livedoor
  • google
  • yahoo
  • del.icio.us
  • Digg

Read Full Post »

元から短くかけるのにリファクタリングとはなんだともいえるのですが、Rubyっぽい書き方が少々わかってきたのと、いろいろな機能を付けたくなったのでやっています。
<%= “<b>date: & [...]

  • hatena
  • livedoor
  • google
  • yahoo
  • del.icio.us
  • Digg

Read Full Post »

Flickr APIをつかってみた

gem install rflickrをした後から
http://www.maxdunn.com/RoR+and+Flickr

のページを 見ながらゴニョゴニョとやって見た。
うまくいった。
やったことはFlickrの [...]

  • hatena
  • livedoor
  • google
  • yahoo
  • del.icio.us
  • Digg

Read Full Post »

テーブル設計が下手なだけではあるんですが、モデルに書き込まれているプラグインコマンドを使った書き込みと、プラグインを使わない書き込みをしたかったのです。
どうするんだろうと小一時間悩んだ結果 set_table_name [...]

  • hatena
  • livedoor
  • google
  • yahoo
  • del.icio.us
  • Digg

Read Full Post »

http://www.flickr.com/services/api/
そんなに難しくなさそう。
UPするときにCreative Commonチェックして、問題なければリンク先と誰が撮影したかの表示に注意しながら、ほぼ直 [...]

  • hatena
  • livedoor
  • google
  • yahoo
  • del.icio.us
  • Digg

Read Full Post »

« Prev