has anyone experienced any problems with the new link_to and
data-confirm in Rails3? It seems when you create a link with instead of
link text, an image, the confirm message isn’t shown.
Hi Ray, I fixed the problem some time ago, but I’m not sure anymore what
the problem was.
I know I had some other problems as well, And they where all related to
a conflicting javascript library that I developed. It was not
conflicting with rails.js but with prototype.js .
I know I also upgraded the rails.js file to the latest version as well
as prototype (1.7 rc)
Ray P. wrote:
Did you find a solution to this? I just hit this myself last night and
have spent a few hours trying to find an answer.
I’ll check into 1.7. I confirmed that this is a problem with
Rails3.beta4:
Create a new project, generate a scaffold for some Foo class. Confirm
that the delete link from the index page gives you a confirmation
dialog. Change the “Destroy” text to an image_tag and the confirmation
no longer works. I read somewhere else that this was an issue with the
JS library and the way that it’s referring to page elements.
I know I also upgraded the rails.js file to the latest version as well
as prototype (1.7 rc)
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.