Den söndagen den 28:e juli 2013 kl. 11:50:55 UTC+2 skrev Colin Law:
>
> On 28 July 2013 10:40, Hans <[email protected] <javascript:>> wrote: 
> > ... 
> > 
> > That works but to be useful I would like to add locals as 
> > <%= render :partial=>'new',  :formats=>[:js],:handlers=>[:erb], 
> > locals=>{id=>"#group_participants_content"}%> 
>
> I don't know whether there are any other problems but it should be 
> :locals and :id I think 
>
> Colin 
>
>
>
>
> > and change _new.js to 
> >   $('"'+id+'"').html("<%= 
> escape_javascript(render(:partial=>'form'))%>"); 
> > However that does not work- The js file seems then not to be loaded at 
> all 
> > 
> > Anyone that has any suggestion of what is wrong ? 
> > 
> > Appreciate any help ? 
> > 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Ruby on Rails: Talk" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To post to this group, send email to 
> > [email protected]<javascript:>. 
>
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/rubyonrails-talk/a4426ed5-8c18-4d0e-a3f4-0ded55b17889%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/fc20d343-7a14-41eb-8e2e-6f99ffef07ff%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to