filmov
tv
Fast Code Snippets And Syntax Highlighting In Rails 6 With Highlight JS | Week 13 - 20in20
![preview_player](https://i.ytimg.com/vi/vQioItq2HXo/maxresdefault.jpg)
Показать описание
This 20in20 episode covers creating code snippets fast with syntax highlighting in Ruby on Rails 6 using Highlight.JS. This is week 13 of the 20in20 project, which means there are still 7 projects left!
Blog Post (Text version of Tutorial)
One of the things I always find myself doing is looking up familiar code snippets because I’ve forgotten them. For the 13th 20in20 challenge, I decided to create a tool to help store code snippets. Now, the purpose of this tutorial isn’t to create a functional code snippet database. Rather, this tutorial is meant to tie together several different ideas.
Then, by tagging code snippets, you’ll also be able to search and sort by the tags you provided your snippet. Tagging is similar to how languages work, but each snippet will be able to have more than one tag. This means we’ll also be using the idea of a JOIN table to combine our tags and our snippets into taggables.
And finally, we’ll use some Rails Templates from Rails Bytes to very quickly add in Bootstrap. This is going to be similar to a previous 20in20 challenge project, where we created a Rails template for Devise and bootstrap. Instead, however, we’ll just use a prebuilt template from Rails Bytes.
Timestamps
0:00 - Intro and Project Overview
2:37 - Part 1 - Project Summary and Backend Models
25:00 - Part 2 - The Middleware Controllers
36:00 - Part 3 - The Frontend Views
59:45 - Part 4 - The Turbolinks Issue, Solved!
1:02:56 - Outro and Project Summary
Photo by Mika Baumeister on Unsplash.
Follow me on social media:
Join this channel to get access to perks:
#Deanin #Rails6 #20in20
Blog Post (Text version of Tutorial)
One of the things I always find myself doing is looking up familiar code snippets because I’ve forgotten them. For the 13th 20in20 challenge, I decided to create a tool to help store code snippets. Now, the purpose of this tutorial isn’t to create a functional code snippet database. Rather, this tutorial is meant to tie together several different ideas.
Then, by tagging code snippets, you’ll also be able to search and sort by the tags you provided your snippet. Tagging is similar to how languages work, but each snippet will be able to have more than one tag. This means we’ll also be using the idea of a JOIN table to combine our tags and our snippets into taggables.
And finally, we’ll use some Rails Templates from Rails Bytes to very quickly add in Bootstrap. This is going to be similar to a previous 20in20 challenge project, where we created a Rails template for Devise and bootstrap. Instead, however, we’ll just use a prebuilt template from Rails Bytes.
Timestamps
0:00 - Intro and Project Overview
2:37 - Part 1 - Project Summary and Backend Models
25:00 - Part 2 - The Middleware Controllers
36:00 - Part 3 - The Frontend Views
59:45 - Part 4 - The Turbolinks Issue, Solved!
1:02:56 - Outro and Project Summary
Photo by Mika Baumeister on Unsplash.
Follow me on social media:
Join this channel to get access to perks:
#Deanin #Rails6 #20in20
Комментарии