January 01, 2017 20:46
This site is a collection of things I have struggled with while learning to code. I am by no means an experienced developer, and don't claim to be, but I want to document things I found difficult, and try to make them more simple for others. If anyone benefits from any of these guides my job here is done.
I started learning to code while working at Shopify and I have been practicing a ton while working on a number of projects.
I plan to blog about HTML, CSS, JS, and Ruby on Rails. If there are any guides you would like to see, please reach out on the About page.
- Dylan Hunt
by: Dylan Hunt | Published: November 21, 2016 00:12
When I was making this website I almost chose not to use gists because they wouldn't load for me with turbolinks, but then I was able to find a solution that works every time, and hopefully it is still working and you can read this post.
Note the turbolinks load function, that ensures it reloads EVERY TIME, not just when the page fully reloads
That's it, you're ready to load your github gists while keeping turbolinks on your site, and they look nearly identical.
by: Dylan Hunt | Published: November 10, 2016 22:29
More scripts can be downloaded on this site here: Liquid and Scripts
by: Dylan Hunt | Published: August 16, 2016 14:14
Do you need to update your blog to add a meta description, or add authentication to users? Use this simple line in the terminal to make a new migration so you can update your db.
Once you run that, head down to db > migrate and modify your migration.
For more information on migrations click here
by: Dylan Hunt | Published: August 15, 2016 20:13
Collecting money online is a lot more simple these days than it used to be. With Stripe you can accept credit cards through your rails app with a simple gem. Let's start by installing the Stripe Gem:
Then, run bundle install to install the gem.
Next, generate a new Charges controller:
The controller does two things:
Shows a credit card form (using Checkout).
Creates the actual charges by calling our API.
Now Add two actions to the controller:
To be continued....Follow the rest of the guide here
January 01, 2017 20:46
December 08, 2016 16:42
November 30, 2016 16:48
November 28, 2016 02:13