Update edetails_controller.rb

Fixed the dynamic finder issue