Re: Problems with link_to_remote

Ryan Bigg
2008-01-24T03:28:58Z

You cannot put a div inside a table row. It is not working because
you''ve
used the class attribute on the div.

Change class to id and get rid of the div, and set the id attribute on the
tr tag.

On Jan 24, 2008 1:26 PM, user splash
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:

>
> Hi,
>
> I have been trying and searching for so long....... I have a label, a
> text field and a link_to_remote link.
>
> In the rhtml, it looks like this:
>
>
>
> Item
0
> <%= n.text_field
:display_bin_txt %> <%> link_to_remote( "add", :update =>
"abc", :url =>{ :action => :add_item
> }, :position => "bottom") %>
>
>
>
> When I click the link, a new label with the number incremented, Item 1
> and a new text field will appear below the previous label, Item 0 and
> text field. Can anyone tell me how can I acheive that?
>
>
> Thanks
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>


--
Ryan Bigg
http://www.frozenplague.net
Feel free to add me to MSN and/or GTalk as this email.