Skip to content

Instantly share code, notes, and snippets.

Avatar

Xander Miller xander-miller

View GitHub Profile
View seeds.rb
require 'faker'
topics = []
15.times do
topics << Topic.create(
name: Faker::Lorem.words(rand(1..10)).join(" "),
description: Faker::Lorem.paragraph(rand(1..4))
)
end
View seeds.rb
require 'faker'
# Create 15 Topics
topics = []
15.times do
topics << Topic.create(
name: Faker::Lorem.sentence,
description: Faker::Lorem.paragraph
)
end
@xander-miller
xander-miller / index.html
Last active Aug 29, 2015
Anne's project
View index.html
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8">
View marcus_seeds.rb
require 'faker'
# Create 15 topics
topics =[]
15.times do
topics << Topic.create(
name: Faker::Lorem.sentence,
description: Faker::Lorem.paragraph
)
end
View marcus_seeds.rb
require 'faker'
# Create 15 topics
topics =[]
15.times do
topics << Topic.create(
name: Faker::Lorem.sentence,
description: Faker::Lorem.paragraph
)
end
View axel_seeds.rb
require 'faker'
# Create 15 topics
topics = []
15.times do
topics << Topic.create(
name: Faker::Lorem.words(rand(1..10)).join(" "),
description: Faker::Lorem.paragraph(rand(1..4))
)
end
View axel_seeds.rb
require 'faker'
topics = []
15.times do
topics << Topic.create(
name: Faker::Lorem.words(rand(1..10)).join(" "),
description: Faker::Lorem.paragraph(rand(1..4))
)
end
View axel_seeds3.rb
require 'faker'
topics = []
15.times do
topics << Topic.create(
name: Faker::Lorem.words(rand(1..10)).join(" "),
description: Faker::Lorem.paragraph(rand(1..4))
)
end
View marcus_seeds.rb
require 'faker'
# Create 15 topics
topics =[]
60.times do
topic = Topic.create(
name: Faker::Lorem.sentence,
description: Faker::Lorem.paragraph
)
topic.save
View viv_posts_show.html.erb
<div class="row">
<div class="span8">
<h1><%= @post.title %></h1>
<small>
submitted <%= time_ago_in_words(@post.created_at) %> ago by
<%= @post.user.name %>
</small>
<p><%= @post.body %></p>
</div>
<div class="col-md-4">