Searching in Rails app with Ransack howto by Komal Swami - March 6, 2023March 6, 20230 Beginners guide In previous articles we have covered beginner guides for debugging ruby on rails application, in this post we shall cover searching and sorting in the rails app with ransack library. After reading this article you would realise that adding Ransack gem to your MVC- model and view controller application and you’re all set to use searching and sorting. You would barely need custom routes or helpers functions. Everything is available in ransack gem :-). At the end of this article I have tried to provide alternatives to ransack and some security flaws in ransack gem if it is used in default configurations. Introduction Ransack will help you easily add searching and sorting capabilities to your Rails application, without any
Which Linux Distribution To Choose ? A Beginners Guide . howto by Someshwar Mirge - February 13, 2022April 15, 20220 Cover Page As a Beginner , choosing a linux Distro to start with becomes a very much confusing task. In linux world we get so many choices that we often avoid getting into choices and sticking to a standard recommendation . Which in many cases is not a very good experience for many new comers . What if I say , there is a OS made for each and every one of you ? It will not be exaggeration . Every Linux Distro is created with a theme and a target audience in mind . Some are backed by Big Tech giants , some by communities and some by hobbyists like me and you . Let's discuss which are the
Fedora 35 : Step By Step Installation on VMware Workstation Pro 16 howto by Someshwar Mirge - November 21, 2021November 22, 20210 Recently , Red Hat backed community Linux distribution Fedora has released its latest stable release Fedora 35 . Lot of new changes and improvements were made after Fedora 34. Lets install fedora 35 using one of the popular hypervisors in market . i.e. VMware workstation pro 16 . Follow steps below to get a working installation of fedora 35 as a virtual machine . Note : Links for installers and ISO VMware workstation pro 16 : linkFedora 35 ISO : linkVMware workstation player : link 1. Creating a Virtual machine Here , we are not covering the basic windows installer steps for VMware . You can grab your installer from this link ( download VMware workstation pro )
Optimize Microsoft Windows 11 To make it fast and efficient | making windows 11 fast and efficient howto by Someshwar Mirge - November 3, 2021November 8, 20210 windows 11 Home screen Windows 11 , the latest offering from Redmond based Tech Giant is under deployment phase now . Many windows 10 laptops have been already upgraded to Windows 11 . On Newer hardware , Windows 11 works like a charm . Its UI looks clean , minimal . It has just the right amount of translucency , the rounded corners and overall animations make user experience way better than what Windows 10 used to be . Although ,Windows 11 has obvious advantages on newer hardware , on unsupported or older hardware , we can see issues like lagging animations , high memory usage , high CPU usage and overall performance
Deploy Rails App on AWS Server howto by redminelab_h5if6c - October 21, 2021October 21, 20210 This post is very quick guide about how to deploy ruby on rails application on AWS cloud running apache2 webserver. Deploying application means putting it on a Web server so that it can be used either through the Internet or an intranet. This Web server might be local UNIX system, while you develop and debug your application to check its working or a AWS cloud server. System Pre-requisites Server (VM or physical) accessible and ssh setup for deployment You need app which ready to go server ( Normal app ,Docker, Container )Web app server just like (apache, nginx) also you need your passenger mod for assistRuby, rail, gems installed Last your required database which you want to use (MySQL,
How To Deploy Ruby App On AWS With Capistrano howto by redminelab_h5if6c - October 10, 2021November 11, 20211 This post will show you steps on how to deploy the ruby rails app on the AWS server running apache and phusionpassenger using Capistrano. As you know Capistrano is a widely used deployment automation tool for ruby applications. It uses 'ssh' to deploy from the development server or staging server to the production server. There is other CI/CD software deployment automation tool like 'mina' but Capistrano is famous for ruby on rails application because of its support for asset pipeline and database migration. Prerequisites On the server side - I am using Ubuntu 18.04.4 LTS AWS instance along with "ubuntu" user - sudo privileges on the server side. I will be using 'ubuntu' as a deployment user, you can create
Hello World With Sinatra Web Framework howto by Komal Swami - August 23, 2021August 23, 20211 Sinatra is a lightweight web framework. Sinatra is similar to Ruby on Rails web frameworks. It's pretty different from Rails as it's much lighter (less overhead), and you have more fine-grained control over your web app. Additionally, there is no built-in database functionality or page rendering — all of that is done manually. So it is more popular among millennials as you can bend it like the way you need. Sinatra Introduction Unlike Ruby on Rails, which is a Full Stack Web Development Framework that provides everything needed from front to back, Sinatra is fast, simple and efficient. However, with that comes more work and more room for error. Sinatra is best used for smaller web applications or ones that don't
MVC architecture in Ruby On Rails Quick Guide howto by Someshwar Mirge - June 22, 2021July 3, 20210 When we are beginner to Ruby on rails , or just getting started , we come across the term MVC . MVC stands for Model , View and Controller . But there are other components involved also . Following image shows how all the components of MVC relate to each other . Now lets have a closer look to each of them . Following are the core components that we must be familiar with . ModelViewControllerRouting SystemDatabase Before diving deep into the Rails MVC world , let me give you a bird eye view of whats happening here . First of all , let us assume that you are the user of this application say AppX ! Now , when
Installing Redmine On Windows 10 With WSL2 Ubuntu howto by Someshwar Mirge - May 13, 2021October 7, 20212 You might be already familiar with the ruby support on windows. Many of us prefer using Linux for ruby on rails development. But if you cannot access a separate Linux installation OR your machine is not capable of running a full Virtual Machine , then this might be the way you can consider for ruby on rails and Redmine development. You can follow these steps for Installing Redmine On Windows 10 With WSL2 Ubuntu Step 1: Enable Windows Features Here we need to enable Windows subsystem For Linux And Virtual Machine Platform features . After enabling we have to restart the machine. This will create "pagefile.sys" and "hiberfil.sys" files in your "C" drive, with ~7GB additional space. The page file, also
Redmine Development and Test Environments Setup howto by Someshwar Mirge - May 11, 2021May 17, 20211 Today we are going to setup the development and test environments for redmine . Generally when we install redmine , we install it in production environment . Sometimes it become necessary to have development env for tasks like debugging OR for development logs . So if you want to setup development and test env also you can follow these steps . (We are using redmine 4.2.1 , MySql 8 as a database and Apache2 web server also.) STEP 1: CREATE DATABASES First of all we need to create separate databases for developement and test environments. Enter following commands by replacing the names of DB if you want . $ sudo -i $mysql >CREATE DATABASE redmine_dev CHARACTER SET utf8mb4; >CREATE DATABASE redmine_test CHARACTER SET utf8mb4; STEP 2: