Render Partial virtual pages

Hi guys,

We all know this snippet of code:

render(:partial => ‘page’)

here’s my problem, I think I need to create a render where in the page
will be dynamic. example, page = username and my code will need to
render(:partial => ‘username’).

is this even possible?

My issue is with a chat application I’m trying to do. I already have
multiple div’s and they all have unique names already. Now the problem
lies herein, I have a page with multiple div layers to represent each
person I’m talking to. When I send a message to one person, it goes into
my app and I have a listening module that will render whatever got
picked-up. But because my controllers renders to the same field of
render(:partial => ‘page’), all of the divs get updated and the message
I send to one person gets sent to all people as well…

hope you guys could give me some insight.

Thanks,

Bing

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