How to post in this group?
http://chozzhan.blogspot.com
On Jul 13, 3:34 pm, Heinz Strunk
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:> Hello,
>
> I''ve got a list in a view and each of element of it has a
link_to_remote
> and everything worked like a charm. Now I added AJAX pagination and the
> link_to_remote doesn''t work anymore.
>
> This is the partial of the list:
> <% for character in characters %>
> <%= character.name %>
> <%= link_to_remote t(''.add''), :url =>
> add_character_activity_path(@activity), :method => :get %>
> <% end %>
> <%= will_paginate characters, :param_name => param_name %>
>
> The add_character function in the controller is being called and
doesn''t
> throw any error but the only thing that is not working anymore is the
> AJAX stuff in the add_character.rjs which is being called after the
> function in the controller (of course):
> page.replace_html "current_number", @current_number
>
> The current_number is not being updated anymore. All I did was that I
> moved the <% for ..%> from the view to a partial and added
> will_paginate.
>
> Does anyone know why this is not working anymore?
>
> Thanks
> --
> Posted viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.