update for rails 3
Merge pull request #3 from maneframe/rails3c

update for rails 3