Never Mind ! Ignore that first post: I found the error. Even though in the post I said params[:id] in the controller I was using params(:id) which is curved brackets instead of square brackets hence the error!
Thanks to all who read this!
Ather Shiraz wrote: