If I do this, it works:

page.replace_html('search_results', render(:partial => 
'search_results'))

Notice that originally, I was passing just the hash key/value pair, but 
now I am passing a render call.

According to the API docs:

"options_for_render may be either a string of HTML to insert, or a hash 
of options to be passed to ActionView::Base#render."

which is what I was doing that wasn't working.  I wonder if what happens 
when I pass the render call, is that returns a string that is used in 
the replace_html call.

Thanks,
Wes

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to