Skip to content
Menu
Railshero
  • Blog
  • About Me
  • Contact Me
  • Privacy Policy
Railshero

Author: Rails Hero

Devise tutorial adding avatars with active storage

Devise tutorial: adding avatars with active storage

Posted on October 21, 2021October 21, 2021 by Rails Hero

User Avatars Everybody knows what user avatars are. But if you’ve been living under a rock; ‘user avatars’ or ‘Profile Pictures’ are graphical illustrations of a user’s persona or character; i.e they represent/describe the user’s personality or alter ego. The word ‘avatar’ comes from the sanskrit language meaning ‘a manifestation of a deity or released…

Continue Reading
SEO friendly URLs with friendly_id

SEO friendly URLs with friendly_id

Posted on October 16, 2021 by Rails Hero

What is a SEO friendly URL ? So, normally rails’ routes looks like these: ‘/posts/122’, ‘/photos/45531, ‘blog/posts/54222’ and so on. This is because rails finds the resource’s records by looking at the record id. This is alright for private applications like research apps, academic apps, management apps, etc. But, if you were to build a…

Continue Reading
Heroku Environment Variables

Heroku Environment Variables

Posted on September 30, 2021September 30, 2021 by Rails Hero

What Are Environment Variables ? Storing credentials like access keys, secret keys, SMTP passwords, etc in the source is never a good idea, especially in production; Because it may be vulnerable to hacks or you might want to share the source code with other developers. So, there are Environment Variables for that. We can use…

Continue Reading
Enabling Gzip Compression

Enabling Gzip Compression in your rails apps

Posted on September 26, 2021September 26, 2021 by Rails Hero

What is Gzip Compression? Gzip compression is a quick and easy way to speed up the loading times of your web application. This can be done by compressing the static assets like stylesheets, javascripts, etc before serving them to the web browser. This can save a lot of bandwidth and as well as make your…

Continue Reading
Validating File Uploads with file_validators

Validating File Uploads with file_validators

Posted on September 20, 2021October 7, 2021 by Rails Hero

File Validations File validations are a must for any web application that handles file uploads. Especially, if your web app has public access or is made for public use or will be used by multiple users. Say for instance if you have a photosharing web app; where users can upload photos. If you didn’t validate…

Continue Reading
Using wavesurfer.js With Rails

Using wavesurfer.js With Rails

Posted on September 20, 2021October 22, 2021 by Rails Hero

Wavesurfer.js Wavesurfer is a javascript library to analyze audio files and create an audio spectrum. It’s very similar to the ones that you can find on soundcloud and other music streaming sites. Wavesurfer also comes with its own audio player, so no additional HTML5 audio player is required. This javascript library is a very cool…

Continue Reading
Some Popular Gems For Your Rails Apps

Some Popular Gems For Your Rails Apps

Posted on September 14, 2021September 15, 2021 by Rails Hero

Popular Ruby Gems These are the most popular gems that i have used at some point, when building web applications with ruby on rails. These features and functionalities can also be added from scratch without using any ruby gems, but using ruby gems is a much better, faster and practical way to implement those features…

Continue Reading
Authorization With Pundit

Authorization With Pundit

Posted on September 8, 2021September 8, 2021 by Rails Hero

What is Authorization ? Authorization is a method to permit or restrict different users or user groups by assigning them with different user access levels or privileges. This can be done by assigning every user or group of users with different access levels or user roles, roles such as admin, editor, subscriber, end user, etc….

Continue Reading
Display uploaded videos with VideoJS

Display uploaded videos with VideoJS

Posted on August 1, 2021August 1, 2021 by Rails Hero

What is VideoJS ? VideoJS is a client-side javascript library for displaying/showing/playing/embedding videos with a video player on the web browser, with controls such as volume controls, forward, skip, play, pause, etc. We can also display uploaded videos directly without even using this library as HTML5 already supports videos. But with videoJS we can have…

Continue Reading
authentication with devise

For Beginners: User Authentication with devise

Posted on July 22, 2021July 22, 2021 by Rails Hero

What is Authentication ? I guess you already know what authentication is. But if you have been living under a rock since the last decade: Authentication basically is a method to grant access to users who are using your app by verifying the identity of the user. This can be done by providing credentials like…

Continue Reading
  • Previous
  • 1
  • 2
  • 3
  • Next

Tags

active record active storage assets assign to many associations attachment attachments authentication authorization avatar bootstrap cdn config database deploy deployments devise DRY environment variables file uploads Gemfile gems has_many helpers heroku index indexing initializer javascript pagination parameters postgres production public routes.rb ruby gem ruby gems search sendgrid server smtp stylesheets variants views voting

Recent Posts

  • Understanding the DRY Principle in Rails
  • Building Multi-tenant Applications with Rails
  • Rails Basics: Templating Engines
  • Deploying With Capistrano
  • Automated Testing in Rails

Archives

  • July 2023
  • June 2023
  • October 2021
  • September 2021
  • August 2021
  • July 2021

Categories

  • Active Record
  • Activity Logging
  • Apps
  • Assets
  • Attachments
  • Audio
  • Authentication
  • Authorization
  • Deployments
  • Error Pages
  • File Uploads
  • General
  • Heroku
  • Heroku
  • Pagination
  • Rails Basics
  • RubyGems
  • Search Engine Optimization
  • Search/Indexing
  • Testing
  • User Interface
  • Video
  • Views & Templating
  • Voting
  • Web Security
©2025 Railshero | Theme: Wordly by SuperbThemes
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT