Skip to content

Instantly share code, notes, and snippets.

@Papillard
Last active December 19, 2015 21:39
Show Gist options
  • Select an option

  • Save Papillard/6021604 to your computer and use it in GitHub Desktop.

Select an option

Save Papillard/6021604 to your computer and use it in GitHub Desktop.
DB seed for food blog !
<% @posts.each do |post| %>
<h1><%= post.name %></h1>
<p><%= post.content%></p>
<%= image_tag post.picture_url %>
<% end %>
Post.create( name: '58 QUALITÉ STREET',
content: "On se demande ce qui a pu passer par la tête du chef Sylvain Sendra (Itinéraires, 75005), guide hors pair en montagnes russes, pour donner un nom de bonbec anglais à sa nouvelle auberge espagnole. Sis rue de la raide Montagne-Sainte-Geneviève, un refuge six-en-un tout carmin, à la fois épicerie fine, sandwicherie (pata negra, rosbif, pickles de navet, cornichons, mayo",
picture_url: "http://www.lefooding.com/media/image/58-qualite-street_1.jpg")
Post.create( name: 'ABRI',
content: "On se demande ce qui a pu passer par la tête du chef Sylvain Sendra (Itinéraires, 75005), guide hors pair en montagnes russes, pour donner un nom de bonbec anglais à sa nouvelle auberge espagnole. Sis rue de la raide Montagne-Sainte-Geneviève, un refuge six-en-un tout carmin, à la fois épicerie fine, sandwicherie (pata negra, rosbif, pickles de navet, cornichons, mayo",
picture_url: "http://www.lefooding.com/media/image/cafe-abri.jpg")
Post.create( name: 'ALAIN MILIAT',
content: "On se demande ce qui a pu passer par la tête du chef Sylvain Sendra (Itinéraires, 75005), guide hors pair en montagnes russes, pour donner un nom de bonbec anglais à sa nouvelle auberge espagnole. Sis rue de la raide Montagne-Sainte-Geneviève, un refuge six-en-un tout carmin, à la fois épicerie fine, sandwicherie (pata negra, rosbif, pickles de navet, cornichons, mayo",
picture_url: "http://www.lefooding.com/media/image/restomaton/restaurant-alain-milliat01.jpg")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment