I am trying to make a refresh button that would reload a partial _seat_list.html.erd in ajax and I am trying to write it so that it works for rails 3. I am also getting this error "undefined method `link_to_remote' for #<#<Class:0x2ca4218>:0x2ca2fb8>", which I have learned is not now a method in rails 3 and am struggling to write it as a link_to
On Feb 20, 7:56 am, Chris Kottom <[email protected]> wrote: > Start by describing the problem. You need to explain what you're trying to > do and what's not working. > > > > > > > > On Sun, Feb 20, 2011 at 1:47 AM, Poojan <[email protected]> wrote: > > Hi, > > > I am new to rails, and I was struggling on getting this code to work > > on rails 3.0.4 and I found out that I need to use the link_to thing > > but I am unsure on how to write it for the code below: > > > <div id="seats"> > > <%= render :partial=>"seat_list", :locals=>{:seats=>@flight.seats } %> > > </div> > > <%= link_to_remote( > > "Refresh seats", > > :url=>"/[email protected]}/seats", > > :method=>"get", > > :update=>"seats") %> > > > what can I DOOOOOO????? > > > -- > > 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 [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

