daviddavis/rubeque — Issue #69: Regex exception
Author: daviddavis
Created: 2012-02-23 17:13:23+00:00
State: open

A IndexError occurred in solutions#create:

undefined group name reference: d
app/models/solution.rb:55:in `gsub'

-------------------------------
Request:
-------------------------------

* URL : http://www.rubeque.com/problems/quelle-heure-est-il-ques-/solutions
* IP address: 46.118.221.53
* Parameters: {"utf8"=>"✓", "authenticity_token"=>"WHAT=", "solution"=>{"problem_id"=>"quelle-heure-est-il-ques-", "code"=>"if date.include?('/')\r\n date.sub!(/(?\\d{1})\\/(?\\d{2})/, '\\k/\\k')\r\nend\r\nDate.parse(date).strftime('%b %d, %Y')"}, "commit"=>"Submit", "action"=>"create", "controller"=>"solutions", "problem_id"=>"quelle-heure-est-il-ques-"}
* Rails root: /app

-------------------------------
Session:
-------------------------------

* session id: "********"
* data: {"session_id"=>"******",
"_csrf_token"=>"*******=",
"warden.user.user.key"=>
["User", [BSON::ObjectId('*******')], ""],
"flash"=>
#>,
@used=#>}