In every instance in all of my classes where I reference R.id.something, the R is in red and it says

如何生成介于0和n之间的随机数?

我使用的是Ruby on Rails 3.1预版本。我喜欢使用PostgreSQL,但问题是安装pg gem。它给了我以下错误:我怎么解决这个问题?

我错误地将列命名为hased_password而不是hashed_password。如何使用迁移重命名此列来更新数据库架构?