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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
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 :
This topic is locked and can not be replied to.