Change the default folder permissions ubuntu

view story

http://stackoverflow.com – I a little new to Linux, it's fantastic and i'm using it happily. What exactly bothers me is when i'm on my ruby on rails project, i generate a controller or any file. If i looking into the file browser, it has a lock symbol. so, i have to do chmod 757 -R file everytime.So, is there anyway to set the default read and write permissions for my root folder? (HowTos)