Last active
December 19, 2015 21:39
-
-
Save Papillard/6021604 to your computer and use it in GitHub Desktop.
DB seed for food blog !
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% @posts.each do |post| %> | |
| <h1><%= post.name %></h1> | |
| <p><%= post.content%></p> | |
| <%= image_tag post.picture_url %> | |
| <% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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