change routes.rb to fix bug: cannot post activity