Sorry for this but it's not working properly because i use form_for tag
inside the <table> tag.
i only remove form from inside the table and keep outside the table tag
and now everything is works like a magic. I hope this will help someone
to save his/her 1 hr or 2.