fixed bugs in routes.rb and static_apges_spec.rb