Even though it became some monolog already...
I found a not so good solution to my problem:
def update_content
render :update do |page|
page.replace 'loginBox', :partial => 'shared/login'
page.replace 'navigation', :partial => 'shared/navigation'
page.replace 'menuBox', :partial => 'shared/menu'
page.replace 'contentBody', :file => 'bla/whatever'
end
end
Is :file a proper solution? If so, is there any variable that tells me
where the call is coming from (in my case it's called whatever) so I
don't have to give the :file path as a parameter whenever I call it?
--
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
-~----------~----~----~----~------~----~------~--~---