Added Routes and conditions to routes in my
config/routes.rb file