If you are trying to use new plugins for Gedit, the default text editor on Mint, you might run into a problem as a lot of the new plugins require Gedit >=3.0 and be default Mint comes with 2.30.
To fix this you need to first get rid of Gedit 2.30 completely by running the following commands in your terminal.
sudo apt-get purge gedit
sudo apt-get purge gedit-common
Once those commands have completed successfully you need to run these commands to get the 3.6.1 version.
sudo apt-get install gedit-common/quantal
sudo apt-get install gedit/quantal
Now that we have the correct Gedit version we can install the Ruby and Rails plugins for Gedit. That’s all there is to it!
$ sudo apt-add-repository ppa:ubuntu-on-rails/ppa
$ sudo apt-get update
$ sudo apt-get install gedit-gmate
$ sudo apt-get install gedit-plugins