Wednesday, 14 August 2013

dynamic programing in rails controller

Here is the simple code snippet for dynamic programming in rails controllers.

  def method_missing(c)
    render_error(404)
  end


The above method will be invoked when there was method missing exception was raised and we are redirected the request to specific page like 404.

Thank You,
Uma Mahesh

git commands

Here are the list of useful git commands.

> git config -l

List all variables set in config file.

> git config --global user.name "uma mahesh"
> git config --global user.email "umamaheshvarma@gmail.com"



Thank You,
Uma Mahesh.