Tuesday, April 19, 2011

Rails filters for Ajax pages

1. layout/application generate the application frame, jquery tabs
2. for each tab, the content is loaded by ajax call
3. the response of an ajax call is just a segment of html or json data
4. Need an easy way to send a request to the server just like ajax call so that I can debug the issue without load the whole page.

SOLUTION 1:

1. Routing .js or .html
2. ajax always asks for .js

SOLUTION 2: Filter

No comments:

Post a Comment