Rendering RJS template from view

I’m sure I’m missing something obvious, but I’m stumped.

I have a tabbed nav bar with an associated content area that is used
to display query results. Clicking a tab, rebuilds the nav bar with
that tab now highlited, performs the query and renders the results to
a separate div. I’m using an RJS template which calls
page.replace_html with the various partials.

So far, so good. The problem I’m having is the default case. The
first time the page is loaded, I need to highlite the default tab and
display the data for that query. I can’t seem to make this work. If I
use link_to_remote, ala the tabs, it works fine. But that requires
the user to click something to get the status.

What am I missing here?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs