Topic: how I call a rails method from javascript
There is one swf file. When I click on that swf file it will return
user_id.
And below that swf file I have to show detail of the specific users. The
detail will come from database. Now the problem is that there is small
javascript function which will give me the user id. So from that
javascript function I wanna call rails method which will fetch data from
database and show it where I want.
so how I call a rails method from javascript ?