profile

Categories

Tags

Welcome!

You'll find my course content and collaborative discussion about technology.

I teach as an adjunct faculty in the Computer Information Systems department at Spokane Community College

Email

kblake DOT scc AT gmail DOT com

Presentations/Interviews

RubyLearning.com interview
Course Technology - Ruby on Rails Presentation



Editing data lecture

April 21st, 2008 |

Concepts

Download app

11 Responses to “Editing data lecture”

  1. Warren Lewis Says:
    This is awesome. You've got us RESTing on DRY CRUD.
  2. Karmen Says:
    Warren, No wonder 'outsiders' think us geeks are weird. ;)
  3. Adam Says:
    Karmen, Have you used Ruby 1.9 yet. It looks like a lot is changing no more array.each :(
  4. Sara Says:
    Karmen - THANK YOU for this one! Last night I was hitting a very large wall and did not realize this was here until tonight. It cleared up a bunch for me.
  5. Karmen Says:
    Sara, Great! I glad it helped.
  6. Sara Says:
    Karmen - I have the delete working on my site, but am not sure how to incorporate the javascript message. I have tried the code that is on page 382 in our book, but all I get is the confirmation message and no action. It uses a "do_delete()". Is that how it calls the method from the controller? As you know, I have no background in javascript.
  7. Karmen Says:
    Sara, research how to do a javascript "confirm" in Rails. Javascript is client side so the confirm itself does not access an action.
  8. Sara Says:
    Karmen, thanks for the tip. Got it working.
  9. Erica Says:
    I seem to be having the same problem Sara was having but haven't had luck researching "javascript confirm in rails". I keep having the same issues; am able to delete with not confirm msg or can get the confirm message to display but then either get an error or no deletion happens.
  10. sara Says:
    Erica - The website I found to be helpful is as follows (go to the "Link_to" section and look at the examples: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#M000913
  11. Erica Says:
    Sara, Thank you! That was a great help. :)

Sorry, comments are closed for this article.