Home > Not Working > Rails Confirm Delete Not Working

Rails Confirm Delete Not Working


share|improve this answer answered Feb 14 '11 at 1:32 Jordan T. One of these helper methods was the delete_icon method, where I wrote like this: def delete_icon(object=nil) link_to image_tag('icons/delete.jpg', :width => 20, :border=>0), object, :confirm => 'Are you sure?', :method => :delete Is there a difference between "Would you like some more" and "Would you like any more"? Note: check this RailsCast http://railscasts.com/episodes/136-jquery-ajax-revised share|improve this answer answered May 22 '13 at 12:48 dpaluy 1,61111124 add a comment| up vote 77 down vote I might be mistaken but you don't have a peek here

Why do Phineas and Ferb get 104 days of summer vacation? Browse other questions tagged ruby-on-rails symbols link-to button-to or ask your own question. Log in with Google account | Log in with Yahoo account | Log in with Facebook account No account? Python script in ArcMap Field Calculator giving Error 000539: SyntaxError: Invalid Syntax?

Rails Confirm Delete Not Working

Join them; it only takes a minute: Sign up How to add confirm message with link_to Ruby on rails up vote 26 down vote favorite 2 I wanted to add confirmation The meaning of 'already' in the sentence 'Let's go already!' What's the meaning of 'Cronenbourg' in the Rick and Morty episode Rick Potion No. 9? why is the definition of the determinant so weird? What could cause humanity to migrate from land to water?

Mysterious LCD interface without wires Why would you compare 'A' with 0x41? Can Newton's laws of motion be proved (mathematically or analytically) or are they just axioms? Why the switch from "ihr" to "Sie" in the following speech from Band of Brothers? Rails Custom Confirm Dialog Not the answer you're looking for?

Best practice to do it by including it in your main application.js: //= require jquery_ujs Check that you included application.js in your layout: = javascript_include_tag :application While, in development mode, view empty v. jquery - :confirm and :method not working in rails button_to - Stack O... Any suggestions on what to investigate to fix this would be appreciated.

GO OUT AND VOTE Visual indicator when a float is too tall The meaning of 'already' in the sentence 'Let's go already!' Why would you compare 'A' with 0x41? Rails Button_to Confirm more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation What Russian letter is this? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

Rails Data-confirm

Female has wings while male does not C Macro - how to get an integer value into a string literal Higher up doesn't carry around their security badge and asks others share|improve this answer answered Jan 22 '13 at 20:48 themarketka 435311 add a comment| up vote 1 down vote Check if Rails' Unobtrusive scripting adapter for jQuery (jquery_ujs) are loaded into Rails Confirm Delete Not Working Forgive me—I'm not fully immersed in stackoverflow culture! Rails Confirm Dialog Did you ever find a solution? –Callmeed Feb 11 '11 at 19:10 add a comment| 7 Answers 7 active oldest votes up vote 3 down vote accepted This problem occurs if

How did you figure that out? –JustBlossom Nov 7 '15 at 21:48 I was upgrading from Rails 3.2 to 4.2. navigate here English Equivalent of phrase "Whose face did you see in the morning?" I'm technical referent but I lost the lead for technical decisions Texas, USA speed ticket as a European citizen, View More Recalll - Medium for programmers. Any ideas? Rails Link_to Confirm Not Working

It very hard to conclude from the information given. –hawk Aug 9 '13 at 20:51 It's easy to know that your solution will DEFINITELY not work, because it changes share|improve this answer edited Feb 4 '15 at 14:06 answered Feb 4 '15 at 9:54 Douglas G. Munchkin: Charity: Giving cards to someone who has 5 already How to improve player engagement in video call for virtual tabletop game? Check This Out How does \hline work?

Thanks. –Billy Jan 4 '15 at 19:49 Well, that works. –Avishai May 6 '15 at 21:40 Worked for me using Rails 4 and Foundation. Rails Delete Confirmation Bootstrap No luck. Now everything seems to work as expected.

Is that "Yes I have JavaScript turned on in the browser _and_ I have jQuery and prototype enabled in application.html.erb" or "Yes, I have jQuery and protoype enabled in the application.html.erb

  • English Equivalent of phrase "Whose face did you see in the morning?" What power do I have as a driver if my interstate route is blocked by a protest?
  • Check out the following SO thread share|improve this answer answered Aug 9 '13 at 20:22 Jason Kim 6,99383771 1 Had the exact same problem and this one helped me out,
  • Someone asked about this, got directed here and was confused about why :confirm didn't seem to work. 'data-confirm' works but it's not really the current 'rails way'.
  • The generated HTML is: Delete Please advise.

data-confirm is used by rails to make the pop up appear when the link is clicked. –0x0uLL May 21 '13 at 12:49 @Tini...have you included <%= javascript_include_tag :defaults %> Score a hand of Hearts Put two commands after an || Are convertible full face helmets as safe as regular ones? I want to shutdown multiple Macs everyday at 23:30 (11:30 pm)? Rails Confirm Modal why is the definition of the determinant so weird?

What should I do about this security issue? In reading similar issues I have learned that the Delete must be converted to a POST for the browser to interpret it. Allen 823715 add a comment| up vote 0 down vote I had exactly this problem and it was caused by triple-clicking the Guide's code block and copy/pasting the code straight into this contact form beta Home Login Loading...

View More at http://stackoverflow.com/questions/6602520/confirm-and-method-not... share|improve this answer answered Oct 27 '15 at 22:35 Cruz Nunez 36129 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Do Deadeye or Tactical Visor target an invisible Sombra? Why didn't "spiel" get an "sh"?

I've seen this problem before, and I just found a workaround, using pure JavaScript.