spec/controllers/rulebooks_controller_spec.rb
def valid_attributes
    { rulebook_name: "My Rulebook",
      front_page: "Something Interesting",
      faq: "FAQ lives here",
      copyright: "Teh new Copyright",
      subdomain: "the_rulebook",
      proposals_allowed: "true"
    }
  end
# This should return the minimal set of attributes required to create a valid
# Rulebook. As you add validations to Rulebook, be sure to
# update the return value of this method accordingly.
This should return the minimal set of attributes required to create a valid
Rulebook. As you add validations to Rulebook, be sure to
update the return value of this method accordingly.
This should return the minimal set of attributes required to create a valid Rulebook . As you add validations to Rulebook be sure to update the return value of this method accordingly .
def valid_attributes
    { rulebook_name: "My Rulebook",
      front_page: "Something Interesting",
      faq: "FAQ lives here",
      copyright: "Teh new Copyright",
      subdomain: "the_rulebook",
      proposals_allowed: "true"
    }
  end
def valid_attributes { rulebook_name : "My Rulebook" , front_page : "Something Interesting" , faq : "FAQ lives here" , copyright : "Teh new Copyright" , subdomain : "the_rulebook" , proposals_allowed : "true" } end
This should return the minimal set of attributes required to create a valid
Rulebook.
This should return the minimal set of attributes required to create a valid Rulebook .