Added useraction.rb to model