[Rails] Re: button_to confirm not working

2011-07-19 Thread li shoubo
loominator1970 wrote in post #964587: > and in my public/javascripts directory > add 'jquery-1.4.3.js' and 'rails.js' (from > https://github.com/rails/jquery-ujs) > > Works like a dream now! > > Dave I do as you do, however, it did not work. At last, i use this: <%= button_to "del", @you, {:oncl

[Rails] Re: button_to confirm not working

2010-11-28 Thread loominator1970
Thanks for all the input, turns out I didn't have my javascript ducks in a row, since I'm a JS newb. I'm going with an all jquery solution, and I needed to do the following things: # in the layouts/application.html.erb # remove the line <%= javascript_include_tag :defaults %> # and add <%= j

[Rails] Re: button_to confirm not working

2010-11-18 Thread Marnen Laibow-Koser
Zoltan Gero wrote in post #962389: > Hello, > > Is any method associated with it i your controller? like: > def destroy > @user.destroy > redirect_to > end > > For first shot for me it seems to be the problem, not JavaScript. No. The problem is that for some reason the JavaScript is not be

[Rails] Re: button_to confirm not working

2010-11-18 Thread gezope
Hello, Is any method associated with it i your controller? like: def destroy @user.destroy redirect_to end For first shot for me it seems to be the problem, not JavaScript. Anyway I suggest Firebug to see if any JavaScript bug. Let me know if further problem with it, good luck gezope On

[Rails] Re: button_to confirm not working

2010-11-17 Thread loominator1970
Actually, its C. "I'm a dumba$$ and didn't read your question carefully enough :)" Javascript IS turned on in my browser and enabled in my app. I will follow you suggestion and try that route. Thanks for the help! On Nov 17, 2:56 pm, Colin Law wrote: > On 17 November 2010 21:47, loominator1970

Re: [Rails] Re: button_to confirm not working

2010-11-17 Thread Colin Law
On 17 November 2010 21:47, loominator1970 wrote: > >> Is JavaScript turned on in your browser? > > Yes, I have jQuery and protoype enabled in the application.html.erb > page. Is that "Yes I have JavaScript turned on in the browser _and_ I have jQuery and prototype enabled in application.html.erb"

[Rails] Re: button_to confirm not working

2010-11-17 Thread loominator1970
> Is JavaScript turned on in your browser? Yes, I have jQuery and protoype enabled in the application.html.erb page. -- 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-t...@googlegroups.com.

[Rails] Re: button_to confirm not working

2010-11-17 Thread Marnen Laibow-Koser
loominator1970 wrote in post #962212: > Hello, > > I'm using the 'button_to' helper in the following syntax: > > <%= button_to "Delete", { :action => "destroy", :id => user.id }, > :confirm => "Are you sure?", :method => :delete, :class => > 'submitLink' %> > > However, the confirmation