Form_remote_tag and update

I have a layout which contains multiple divs, (header, menu, content,
footer), content contains <%= @content_for_layout %>.

I have switched all link_to and form_tag to link_to_remote and
form_remote_tag and they are supposed update the content div.

It is working, however instead of updating just the div content, it is
re-rendering the entire layout within the div.

Hopefully someone can point out something simple I am missing, or how
my logic needs to change, any pointers would be appreciated.

Thank you,
Jeff

Hi,
I think u have given the divs in the index.rhtml(“the main page of the
application”) file also!! Check the index.rhtml file once and make the
changes accordingly!! The main page should contain only the content
part. It should not contain even a single div…

I hope this might be correct, else sorry…

-Harish

Jeff wrote:

I have a layout which contains multiple divs, (header, menu, content,
footer), content contains <%= @content_for_layout %>.

I have switched all link_to and form_tag to link_to_remote and
form_remote_tag and they are supposed update the content div.

It is working, however instead of updating just the div content, it is
re-rendering the entire layout within the div.

Hopefully someone can point out something simple I am missing, or how
my logic needs to change, any pointers would be appreciated.

Thank you,
Jeff

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