Thats all easy but first,  is a little different in rails 3 than in the next
example

here , is not exactly what you want but it will get you started

http://railscasts.com/episodes/196-nested-model-form-part-1

http://railscasts.com/episodes/196-nested-model-form-part-2

by the way, i bet you are doing


respond_to do |format|
format.html {redirect_to whatever}
format.js                                         <==== you are leaving this
blank
end

when you dont pass a block to  format.js it will call a js file with the
same name as the action, but you can make it call
another action like this

respond_to do |format|
format.html {redirect_to whatever}
format.js     { render :action =>   "success" }  <==== calls success.js.erb
    in the same view folder
end

also this

page.replace_html('certs', render('/provers/certs'))

should be this


page.replace_html('certs', render :partial=> "provers/certs")

and this here

@prover = Prover.find(params[:id => @certification.prover_id])

when did you fill the @certification instance, i think i should be empty or
nil in this case

-- 
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