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
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
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
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
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
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"
> 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.
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
8 matches
Mail list logo