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
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