I am a new one to rails. I have a problem with link_to_remote.
I have a calenedar on my web page, user selects a date and controllers
returns a report related to that specific date. The whole process is
working except one thing, instead of only myDiv the whole page is
refreshed. The header menu is reappeared in the myDive tag.
I am a new one to rails. I have a problem with link_to_remote.
I have a calenedar on my web page, user selects a date and controllers
returns a report related to that specific date. The whole process is
working except one thing, instead of only myDiv the whole page is
refreshed. The header menu is reappeared in the myDive tag.
sounds like your display action is rendering too much
You haven’t shown the code in the controller that responds to the
‘display’ action, but I suspect that you need to add “:layout =>
false” to the render (or make the render explicit rather than the
default after hitting the end of the display action without having
rendered or redirected).
-Rob
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.