Forum: Ruby on Rails [Rails 3.2.8] issue in regex scan

Ee0293412faca21e4ebf3326ed9d5f8c?d=identicon&s=25 Kad Kerforn (kadoudal)
on 2012-11-02 09:25
(Received via mailing list)
running a scan in irb is fine :

1.9.3p194 :001 > request_url =
 => "
 => "6"

however running it in my controller doesn't gives any result :

(rdb:1) request.url
 site_id =
NoMethodError Exception: undefined method `[]' for nil:NilClass

#  empty result

the url is the same, the regex also ..  what's wrong with performing the
scan in a Rails app ?

thanks for feedback
Ee0293412faca21e4ebf3326ed9d5f8c?d=identicon&s=25 Kad Kerforn (kadoudal)
on 2012-11-02 09:34
(Received via mailing list)
sorry .. found the 'bug' .. typing error   should be 'sites' in the
sacnning fine  now ...

Le vendredi 2 novembre 2012 09:24:43 UTC+1, Erwin a crit :
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.