Saturday, 13 July 2013

postgresql console interface


Here is the command to connect to postgresql through console,

> sudo -u postgres psql

The above command will connect to psql.

>  sudo -u postgres psql
psql (9.1.9)
Type "help" for help.

postgres=# 


Now you can run all the sql queries through this interface.



Thank You,
Uma Mahesh.




 

Wednesday, 10 July 2013

Hi,

While working with rspec I had issue as shown below.

undefined method `visit' for #<RSpec::Core::ExampleGroup::Nested_5::Nested_1

I didn't change any code modifications in the spces and my spces started failing with the error shown above. I have searched for the solution and I didn't found any specific solution for that. At last I came to find the issue is due to change in the Rspec version in my gem file.

I reverted back to my old gem file and finally able to solve the issue.

Thank You,
Uma Mahesh.