On 11 September 2012 13:04, deal bitte <li...@ruby-forum.com> wrote: > This was a link_to_remote in rails 2. Now i changed it to link_to with > remote=>true > But it still does not work > I have added this in my gemfile and done bundle install > gem 'prototype_legacy_helper', '0.0.0', :git => > 'git://github.com/rails/prototype_legacy_helper.git' > > > <%= link_to( "replace" ,:update => 'doc_' + doc.id.to_s, :url => { > :action => :replace , :id => @docset, :old_id => doc.id, :new_id => > new_doc.id },:remote=>true) %>
The first thing you need to do is to work out which bit is not working. Is the link_to not generating the correct html? Are the wrong parameters being posted? Is the controller action not working correctly? and so on. Have a look at the Rails Guide on debugging and it will show you techniques that you can use to debug your code. Colin > > -- > Posted via http://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@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.