error while redirecting

In my application when user clicks on button I am calling one
controller method and from that controller i am redirecting to another
controller and corresponding view but doing this i got a following error
  #<EOFError: bad boundary end of body part>

I am not able to understand this why this is happen