On Tue, Oct 25, 2011 at 4:14 AM, Sebastian
Ah, I found my mistake!!!
I was just only adding JQuery in my view with <%=
but not in my application.html.erb. That means that the code in the
application.js had propably no JQuery access!
Ok remove this
google to your Gemfile and at this
then in the console
this will install jquery the right way
then go to
config/application.rb and verify that :defaults is made up
this like here is what tells rails what to output in the
now jquery is set up.
My problem now is that my other normal Rails Java Helpers (see
below )are not working anymore as intended!
<%= button_to ‘Destroy’, product, :confirm => ‘Are you sure?’, :method
=> :delete %>
That one is wotking, but there is no confirm pop up!!!
Is possible that you are have installed prototype which has similar
to that of jquery.
they have similar syntax but that’s it.
Now what version of rails are you using, this helper changed their out
in rails 3.x+ from that found in rails 2.x-.
I read something about JRails. Is that an option or is there another
replacement for the ruby interpreter that lets Ruby run on the java
machine. Some gems are not compatible with jruby.
language aimed mainly at the web.
read this also:
develop when the web was very young it has lots of short coming, so
start creating functions to deal with those short coming and eventually
them together to made a library, for example, to capture a the form with
as you can see that is a bit long, also if it were a class you would
and if you have to capture a tag type
so many libraries have a function that replaces this with $( ) where $
the name of the function. In jquery you distinguish what is that you
capture by addin a #, a . or nothing.
the result is :
know of, also google is making a new more modern one called
here http://try.dartlang.org/) but there are many libraries (the other
around you asked about maybe?)