Edited addResource model in user.rb