Devise 3.0 works with Rails 3.2 onwards. You can add it to your Gemfile with: gem 'devise' Run the bundle command from terminal to install it. bundle After you install Devise and add it to your Gemfile, you need to run the generator: rails generate devise:install The generator will...
Articles from March 2015
Install a Secure phpMyAdmin (MySql Database) GUI on Ubuntu
phpMyAdmin is an free web software to work with MySQL on the web—it provides a convenient visual front end to the MySQL capabilities. Setup The steps in this tutorial require the user to have root privileges on your virtual private server. You can see how to set that up...
How to take Postgres DB backup from server and insert it on local Project
Step-1 login to the server by using ssh kya and ip Ex- ssh ‘user@101.111.00.01′ then provide password step-2 login to the post by using sudo su – postgres Provide password for postgres pg_dump slips99 > xyz.sql (make sure we are oing to have proper dump from server – production/development...
Want Mysql GUI ,Workbench is one option, see How to Install MySql Workbench on Ubuntu
Workbench is use to view the server Databae on our Local PC There are binary distributions of MySQL Workbench available for several variants of Linux, including Fedora, Oracle Linux, and Ubuntu To install Workbench go to terminal and type(ctrl + alt + T) 1. sudo add-apt-repository ppa:olivier-berten/misc ITs better...
How to validate and disable (start & end) dates less than start date (datepicker)
In some case we want start date should be less than end date, and to disable renaming date HTML Script $(document).ready(function(){ $(“#txtFromDate”).datepicker({ numberOfMonths: 1, onSelect: function(selected) { $(“#txtToDate”).datepicker(“option”,”minDate”, selected) } }); $(“#txtToDate”).datepicker({ numberOfMonths: 1, onSelect: function(selected) { $(“#txtFromDate”).datepicker(“option”,”maxDate”, selected) } }); });