2008-06-18 Ruby on Rails2.1 ログインユーザー情報の取得 ruby current_user変数で取得可能。html.erbファイルの中なら <%= current_user.id %> ってな感じで使います。