Web application arquitechture with Ruby