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

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.

Reply via email to