I just figured out you can use

yield(page)

def update_content
  render :update do |page|
    page.replace 'loginBox', :partial => 'shared/login'
    page.replace 'contentBox', :partial => 'shared/content'
    page.replace 'navigation', :partial => 'shared/navigation'
    page.replace 'menuBox', :partial => 'shared/menu'
    -----> yield(page) <-----
  end
end

but yield wants some block, if I pass a String in the block nothing 
really happens...
-- 
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