Witam,
Mam problem z form_remote_tag. Sytuacja wyglÂąda mniej wiĂŞcej tak (wywaliÂłem niepotrzebne rzeczy z kodu, zostaÂła sama esencja
) :
list.rhtml:
[code]
<%= render ‘note/notes_list’ %>
<%= render ‘category/list’ %>
<%= render ‘note/archive’ %>
<label for="new-comment-nick">Nick:</label>
<%= text_field 'comment', 'nick', :id => 'new-comment-nick', :size => "20" %><br />
<label for="new-comment-email">eMail:</label>
<%= text_field 'comment', 'mail', :id => 'new-comment-mail', :size => "20" %><br />
<label for="new-comment-webpage">WWW:</label>
<%= text_field 'comment', 'webpage', :id => 'new-comment-webpage', :size => "20" %><br />
<%= text_area 'comment', 'content', :id => 'new-comment-content',
:cols => "30", :rows => "5" %><br />
<input type="hidden" id="comment_note_id"
name="comment[note_id]" value="<%= @note.id %>" />
<input type="submit" value="submit" />
<%= end_form_tag %>
<div id="comments">
<%= render 'comment/list' %>
</div>[/code]
I teraz jeÂżeli w przeglÂądarce wpiszĂŞ na przykÂład 127.0.0.1:3000/note/show/1
dodawanie komentarzy dziaÂła poprawnie. Ale kiedy uÂżywam link_to_remote, ktĂłry prowadzi do :action => show i updatuje div “notes” z pliku list.rhtml, dodawanie komentarzy nie chce dziaÂłaĂŚ pod operÂą.
ByÂłbym wdziĂŞczny za wszelkÂą pomoc. Nie mam pojĂŞcia co jest nie tak…
Pozdrawiam,
Drogomir