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

No comments:

Post a Comment