In this blog post, I’ll walk through the entire setup of the AWS s3 bucket for Ruby on Rails with ActiveStorage.
Let’s begin with ActiveStorage configuration first and I would assume you already have rails project generated where you want to implement this functionality :
First, we going to install ActiveStorage by running this command in your terminal
$ rails active_storage:install , it will generate some migration files for you so went we need to run it as well
$ rails db:migrate .
While I was working on my final project for Flatiron School I’ve encountered a few problems with sessions and I wanted to cover this subject in a little more depth. I gonna give you a heads-up and say that there is no right answer that suits all of the cases, and that’s why I wanna go over them and talk about the options.
First of all, this publication is targeted at people who’s want to deploy their projects and I’m going to connect the dots on a few deployment options and how can you handle your sessions in those cases.
Have you ever visited a website with a really awesome background animation? Click on the link to see it (you can choose different ones right at the bottom). Have you ever wondered how on earth did they do that? Well, it’s all thanks to a canvas, an HTML5 element.
What exactly is canvas? It’s an HTML element like
<canvas> element is only a container for graphics. …
Transitioning to Rails after Sinatra was pretty smooth since they have a lot in common, MVC in particular. The Big difference I wanna say was a division of routes from controllers but besides the fact that rails is way more advanced and have over 200,000 lines of code in its engine vs 2,000 lines in Sinatra’s. Doing the Sinatra project I really liked that you can just write
Being a student at Flatiron Bootcamp is very exciting! In the second module, we were learning Sqlite3 to operate on databases, ActiveRecord framework that manipulates data in database using ruby language, and Sinatra framework that allows you to host a web app and add a bunch of routes to it.
After completing the second module it’s time for a project which is to build your own Sinatra web application. Honestly, I couldn’t wait to get it going, but you need to make sure that you absorb all of the materials provided to you before you dive in, otherwise, it will…
There is no doubt that the tech industry is very well known considering the huge impact it has on our everyday life. Most people take for granted all the hard work and effort put into developing things that you use every day without even thinking where it comes from and how it even works. I was always amazed how progressively everything around us was being developed and things were discussed as something futuristic becomes a new normal just a few years later, amazing isn’t it? Every time I open up an app on my phone or a video game or…