Hi, I am using Ext Grid to draw a table. show.rhtml page allows to access account data so the url look like http://<server_name>/<project_name>/show/1, where 1 is an account id. show.rhtml has the following code: <%= javascript_include_tag "grid.js" %> <div id="grid" style="border:5px solid #99bbe8; overflow:hidden; width: 650px;"></div> grid.js is used for grid initialization and rendering it accesses the "<project_name>/grid_data" method that is in the project controller grid_data forms the jsondata for the grid. The problem: grid.js has no idea for what account the grid is rendered. However, account id is required in grid_data to provide a proper json data. How do I pass account id from "show.rhtml" to "grid.js"? Thanks for your help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---