0

I have my application recently transferred to rails3. I have an issue in Ajax call. In my 'view' page,i used link_to tag like this :--

'<%= link_to "#{@album_name.album_name}", { :controller => "admin", :action => "label_album_track", :upc => label.upc, :date => params[:date] }, :remote => true %>'

In my controller class, i redirect like this :-

 render(:update) { |page|
    page.replace_html 'tab', :partial=>'admin/track' ,:object=>  @track,@dsp_array,@total_track]
}

But that's not working. If you have any other rails-ajax tutorial or URL, please reply.

1
  • Do you have the empty div tags? i.e <div id = "tab"></div> ? Also its useful to check the server for any errors when you click on the link.
    – Shreyas
    Mar 4, 2011 at 17:13

1 Answer 1

1

Refer this post it should answer you query Element.update is not a function [Rails 3 + JQuery]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.