Joined November 2013
·
Posted to
An algorithm to generate fake but realistic looking graph data(that trends too)
over 1 year
ago
yes, spam. i got my hopes up.
Achievements
88 Karma
4,444 Total ProTip Views
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
I hit a huge gotcha. We wanted to make a single page amp'ified and then move to a more generalized layout. We simply added
Mime::Type.register "text/html", :amp
to mimetypes.rb thinking it was adding an additional format. However, this wipes out the original "text/html" mime type in Rails and runs requests through amp layouts. If you don't create the .amp.erb layout, it will give 500 error with ActionView::MissingTemplate exception. Instead, you want `Mime::Type.registeralias "text/html", :amp`.