task seed_pages: :environment do C::Page.create!( name: 'Home', body: 'This is the home page', layout: 'home', url_alias: 'home', ).page_info.update( home_page: true, protected: true ) C::Page.create!( name: 'Blogs', body: 'This is the home page', ).page_info.update( protected: true ) C::SalesHighlight.create!(image: File.open(Rails.root + 'seed/highlight1.png')) C::SalesHighlight.create!(image: File.open(Rails.root + 'seed/highlight2.png'), url: '/brands') end