hi all,
im calling a method in my controller from my view
(category.rhtml) using form_remote_tag.the method was called properly
but the view its rendering was not replaced properly in the parent view
(category.rhtml).
in my parent view (category.rhtml) im having a div
with id called "block" where i want the rendered partial to be
replaced.when i tried to execute im getting the output as
try {
Element.update("block",
"<html>\n<head>\n<title> calling controller
method
</title>\n</head>\n<body>\n\n\n this is to
check\n\n</body>\n</html>\n");
} catch (e) { alert(''RJS error:\n\n'' + e.toString());
alert(''Element.update(\"block\",
\"<html>\\n<head>\\n<title> calling
controller
method </title>\\n</head>\\n<body>\\n\\n\\n this is to
check\\n\\n</body>\\n</html>\\n\");''); throw e }
people know it please help me.
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---