Desbest,
You can simply check this as following:
if request['HTTP_REFERER']
# Do something with the referrer header.
else
# Do something else.
end
Yorick
On 01/11/12 01:53, desbest wrote:
This may sound like a foolish question but when I use defined? it
doesn't work and if I just use !request.HTTP_REFERER.nil? or if
request.REFERRER
it either doesn't work or I get an exception error saying that it's an
undefined method.
For all other variables like the user.username one it works, but not on
request.
--
You received this message because you are subscribed to the Google
Groups "Ramaze" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/ramaze/-/WdawS4Dbzh8J.
To post to this group, send email to ram...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/ramaze?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ramaze" group.
To post to this group, send email to ram...@googlegroups.com.
To unsubscribe from this group, send email to ramaze+unsubscribe@googlegroups.com.