need to remove a portion of a sting

Discussion in 'Ruby' started by David Gerber, Dec 23, 2011.

  1. David Gerber

    David Gerber Guest

    I have a value athlete1_birthdate can someone tell me how to parse off
    the birthdate
    David Gerber, Dec 23, 2011
    1. Advertisements

  2. David Gerber

    gerberdata Guest

    also what would be the best way to name the field in order to get the
    object, value


    basically want to do something like this
    params.each do |key, val|

    #parse the keys
    object = athlete
    value = birthdate

    gerberdata, Dec 23, 2011
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.