Re: Problems with link_to_remote

user splash
2008-01-24T08:51:21Z

> # the form
>
>
>
>   <% form_for :item, :url => { :action => :save_item}, :html =>
{ :id =>
> "item" } do |n| %>
> Item 0
>     <%= n.text_field :item %>
>     <%= link_to_remote( "add", :update =>
"button", :url =>{ :action =>
> :add_item }, :position => "above") %>
>
> <%= link_to_function ''Previous'',
"$(''item'').submit()" -%>
>
>   <% end %>
>
>
> ===================================================>
> use anything but a table to wrap that markup and you should be fine.
> Though it would be better to strip down that link_to_remote and push the
> extra stuff into the partial to work a rjs



Hi,
Thanks. It works. But there is a problem. I have no idea how to loop
this. Can anyone give me some clue?