Thanks for your Response.
The problem is it is not recognizing flash player in rails. I given the path to player works great.
jwplayer('myElement').setup({'flashplayer': "/assets/flash.swf", 'id': 'playerID', 'width': '540','height': '360', 'file': videopath });
It may help to somebody who working on this.