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
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:
Install Redmine On AWS Server Using CLI howto by Someshwar Mirge - May 7, 2021May 7, 20210 We are trying to install redmine on AWS server using CLI - command line. This step by step guide will help you to setup. There is docker file available on AWS markatepalce . This redmine was installed on other AWS instance running Ubuntu. But with this user is getting error while downloading attachments. User is getting "Internal server error", and he is not able to download the attachments. So we have decided to install redmine using command line. This helped to solve the issue and now redmine is running on new AWS instance. We have installed our redmine in /var/data/redmine/redmine-4.2.1 .(redmine installation guide) We are using webrick web server for redmine and its default output is at
MySqldump Failed on AWS Server howto by Someshwar Mirge - May 6, 2021May 7, 20210 Taking Database Backup We are using AWS Ubuntu 20.04 LTS Server and Latest MySql . We are trying to migrate databse to new server using mysqldump . We have tried to take the backup of existing databse but it thrown a error messege. /usr/bin/mysqldump -u user -p'password' databse | gzip > /var/data/redmine/backup/redmine_date +%Y-%m-%d.gz mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces This happen because , in never version of mysql (>=8.0) It requires elevated previlages to backup db. So we elevated previlages. mysql> GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost'; Query OK, 0 rows affected (0.00 sec) mysql> SHOW GRANTS for redmine@localhost; +--------------------------------------------------------------+ | Grants for redmine@localhost | +--------------------------------------------------------------+ | GRANT USAGE ON .
Develop Your Own Redmine Plugin howto by Someshwar Mirge - March 24, 2020August 15, 20200 So you want to develop your own redmine plugin then your search ends here. Internet does have all the information but few steps and methods are for old version of redmine and those steps may not work with redmine 4.0 or later version. This will be our opening post and more posts to be followed as we may not able to cover all the steps in one post. First of all , we need to have a working redmine framework, please follow the steps on how to install current redmine version on latest Ubuntu. Once you are success installing redmine, login to your server, navigate to plugins sub directory in redmine directory. In plugin directory, we are going to
Install Redmine on Disco Dingo Ubuntu 19.10 With Solved Build Errors howto by Someshwar Mirge - March 16, 2020March 16, 20201 This step by step tutorial guides you through the detail process of installing Redmine 4.1.0 on Ubuntu 19.10. During installation there are few build errors related to nokogiri and mysql2, this post describes how to install redmine on Disco Dingo Ubuntu 19.10 with solved build errors. To get working Redmine 4.1.0 we need to follow following steps (total 8 steps) : Step 1 :Install redmine on Disco Dingo Ubuntu 19.10 First step is to check and install apache server. Open your terminal by pressing Alt+Ctrl +T and enter following command to install Apache2 server sudo apt install apache2 libapache2-mod-passenger after execution of above command , visit http://localhost/ on your browser to check proper installation
Bitnami Redmine Installation On Windows howto by Someshwar Mirge - February 4, 2020August 27, 20200 In this post we will explain details steps on how to install redmine on windows operating system. We will also explain steps on how to install new plugin and test it. We are using redmine 4.1 and windows 10 for this exercise. As you know redmine is one of the popular web based project management tool, where all the trackers can be customized to meet your organization process flows. This is our attempt to help online community to promote use of redmine for better project management and tracking. STEP 1 : Download & Install Redmine On Windows a) Visit to Bitnami redmine site and download the binary installer for windows 10, STEP 2: Configure BITNAMI REDMINE Launch