Problems with embedded scaffolds in master branch

5 views
Skip to first unread message

Rodrigo Saad

unread,
Oct 6, 2010, 5:53:01 PM10/6/10
to actives...@googlegroups.com
Hello,

I'm trying to update a project with master branch but I'm dealing with
ajax problems. I have embedded scaffolds that are called through ajax
calls.

For example, i have a link_to_remote function that triggers an action
called :list_page of some controller. The function :list_page is given
below:

def list_page
render :update do |page|
page.replace_html :main_box, :active_scaffold => 'services'
end
end

The result i get for the active_scaffold services is all mixed up. My
guess, it is returning js instead of html. It works fine with branch
rails-2.3.

Here is an example of what i get:

try { $("as_4058051e3069ff2943649d921f089458-content").update("\n \n
\n \n \n \n \n \n \n \n\n \n\n \n \n\n \n \n\n \n \n\n \n\n\n\n\n \n\n
\n \n\n \n \n\n \n \n\n \n\n\n\n\n \n\n \n \n\n \n \n\n \n \n\n
\n\n\n\n\n \n\n \n \n\n \n \n\n \n \n\n \n\n\n\n \n
\n
Photo

\n \n
Name

\n \n Click to reset\n
\n
\n No Entries\n ..................


I tried to insert the embedded scaffolds inside a partial but i got
the same result.

any help?

Thank you,

Rodrigo Saad

Reply all
Reply to author
Forward
0 new messages