On Aug 29, 2008, at 1:19 PM, Jonathan Linowes wrote:

i am trying that too, but at this point in my story i dont actually have the current record object to generate the form action path. How would i extract the :action = path from the <form> in the current response.body ?

got it

    #assuming only one form on the page
    path = response.body.match(/action=\"([^"]+)\"/)[1]

still, i dont like bypassing webrat though


_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to