Jason Tuttle
2006-Apr-07 20:52 UTC
[Rails] Re: page.replace_html "#{var_containing_id_name}",:partial
On 4/7/06, Chris Hall <christopher.k.hall@gmail.com> wrote:> page.replace @user.id, :partial => "edit_form"Thanks a lot Chris. -- Unfortunately, it didn''t quite work when I tried it that way. However, when I tried it this way: page.replace_html "#{@user.id}", :partial => "edit_form" It worked! Thanks again!! : ) Jason
Chris Hall
2006-Apr-07 22:33 UTC
[Rails] Re: page.replace_html "#{var_containing_id_name}", :partial
ah, yeah...@user.id is an int...method expects a string. my fault on the typo. On 4/7/06, Jason Tuttle <jason@gothamcitymacs.com> wrote:> > On 4/7/06, Chris Hall <christopher.k.hall@gmail.com> wrote: > > page.replace @user.id, :partial => "edit_form" > > Thanks a lot Chris. -- Unfortunately, it didn''t quite work when I > tried it that way. However, when I tried it this way: > > page.replace_html "#{@user.id}", :partial => "edit_form" > > It worked! > > Thanks again!! > > : ) > > Jason > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060407/e223b87b/attachment.html
Possibly Parallel Threads
- Re: Re: page.replace_html "#{var_containing_id_name}", :partial
- Re: page.replace_html "#{var_containing_id_name}", :partial
- page.replace_html "#{var_containing_id_name}", :partial => ''edit''
- Join Queries? - find() or find_by_sql()
- Re: Rails Digest, Vol 19, Issue 216