class FinancialsController < ProductController
  before_action :find_product!

  def index
    unless params[:product_id] == 'coderwall'
      redirect_to product_path(@product)
    end
  end
end

class FinancialsController < ProductController
  before_action :find_product!

  def index
    unless @product.slug == 'coderwall'
      redirect_to product_path(@product)
    end
  end
end

Check slug instead of path param
Check slug instead of path param
