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.

johnsyweb
  • 136,902
  • 23
  • 188
  • 247
Gagan
  • 129
  • 2
  • 10
  • Do you have the empty div tags? i.e
    ? Also its useful to check the server for any errors when you click on the link.
    – Shreyas Mar 04 '11 at 17:13

1 Answers1

1

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

Community
  • 1
  • 1
Ross
  • 1,562
  • 1
  • 15
  • 26