fix some resources, add some ideas for rails