Displaying 20 results from an estimated 50000 matches similar to: "Referer"
2006 Mar 07
7
m:n or multiple 1:n?
I have a Newbee question:
i have three tables and want to connect them. so is it stupid to make a
triple m:n (rails style xs_ys_zs) or do i have to make a new table
(newtable) where i got multiple 1:n?
the habtm (has and belongs to many) do only work proper to join two
tables, or i am wrong?
-jens
--
Posted via http://www.ruby-forum.com/.
2007 Feb 22
4
Modifying Apache Conf To Block Leachers
Howdy,
I''m using Apache 2.2 + Mongrel with great success, using the sample
configs from the Mongrel site.
We have some MP3s on the site and recently someone has been stealing
them and basically leaching them from the site, linking to them from
an off-site location.
I''ve been trying to modify my Apache conf to check the referrer and
adjust accordingly as below but no
2006 Mar 02
1
Forms with and without Models and Error Handling
Hi,
I currently programming a delicious clone to understand ruby on rails.
The problem I''ve got is that I prefill a form (form without models)
without a database connection and then save it into the database.
For validation i am using the validation helper methods. My Problem is
that i don''t know how I get the error hash from the helper method
validates... etc. because I
2007 Feb 22
1
HTTP_REFERER support?
Hello,
we want to read the referer URL from the HTTP headers, in order to be able
to track where someone is coming from, in a Rails application.
As I can see in the source, Mongrel doesn''t even parse the HTTP_REFERER
field from HTTP requests. This would make a useful feature, I guess.
Apart from that, Mongrel is (IMHO) simply the best solution for deploying
Rails - keep on going!
2006 Mar 09
3
redirect_to :back question
Hi!
How to use this? I can declare it only inside a controller, so i tried
to do add this to application controller:
def back
redirect_to :back
end
so i could call in all my views
link_to ''back'', :controller => ''application'', :action => ''back''
but it doesn''t work - there are no errors, but i''m still on the same
2007 Feb 18
2
SerializationTypeMismatch in Production Mode
In production mode, I keep getting this error the 2nd time it loads a
page with a serialized attribute:
ActiveRecord::SerializationTypeMismatch (answers_container was
supposed to be a Array, but was a NilClass):
/vendor/rails/activerecord/lib/active_record/base.rb:1964:in
`unserialize_attribute''
In development, it works fine. In fact, if I set to false
config.cache_classes in
2009 Aug 27
2
Setting @request.env["HTTP_REFERER"] in an integration test
Hi.
I would like to set @request.env["HTTP_REFERER"] in an integration
test, but due to its nature, I would naturally set this value to the
previousle request url. How do I do that.
Thanks.
Jarl
2006 Jun 28
2
Saving and reproducing a POST request.
Hi
I have an action which saves the originating resource from which it
was called, and returns to it later. This is done by setting:
session[:return_to] = request.referer
...
redirect_to(session[:return_to])
Which works great for GET resources. The problem is that POST
variables aren''t kept in request.referer, so this method fails when
the originating resource is a a POST.
2006 Jan 30
10
How do I get the the full URL of an incoming request
Hey,
Is is possible to get the full URL
(''http://www.sender-domain.com/links/list.html'')
from where a user was sent to my site
(www.my-domain.com/controller/action) e.g. by clicking on a link? (I
read about something called a ''request'' object, I don''t know what it is
or does, is that what I''m looking for?
I''m very new to Rails
2011 Jun 05
1
Cancan redirect back at AccessDenied
Hello
I have a rails 3 app and I am trying to implement the redirect back
action at access denied for cancan.
If I try this in my application_controller:
rescue_from CanCan::AccessDenied do |exception|
redirect_to :back
end
It gives the following error:
No HTTP_REFERER was set in the request to this action, so
redirect_to :back could not be called successfully. If this is a test,
make sure
2002 Jun 24
1
problems with assigning a class to an environment
I was surprised to find that calling str() on an environment can remove
attributes from it, as in
> a <- new.env()
> class(a) <- "jens"
> class(a)
[1] "jens"
> str(a)
Class 'jens' length 0 <environment>
> class(a)
NULL
then I found in the R-Language-Manual in chapter 2.1.10 Environments the
sentence:
"In particular, assigning
2006 Jun 28
8
How to obtain clients IP adress
Is it possible to obtain clients adress in ruby on rails?
by
TheR
--
Posted via http://www.ruby-forum.com/.
2017 Mar 22
2
GSoC 2017: Letor Click Data Mining
Hi James,
> Isn't this from the query template, ie from the main web page of search
> results? (It might make sense from opensearch as well, though.)
Yes, you are right; it is the query template. The reason I said opensearch
template is that I haven't quite read all sections of the Omega docs and I'm
still in the process. Thanks for pointing that out.
I'm aiming to cover
2001 Aug 13
3
subset syntax
Can anyone tell me what's wrong with this command??
xx<-subset(x,LOCAL.NAME==c("Chifumbata","Chikota"),select=c(13,16,19,23,26,2
9,30,33:48))
Warning message:
longer object length
is not a multiple of shorter object length in: LOCAL.NAME ==
c("Chifumbata", "Chikota")
both of the following commands work fine
2007 Jul 11
4
Query with special characters crashes under Windows XP
Hi,
Index queries with special characters (e.g. German Umlauts but also
other European ones) make the Ruby process run for quite a long time and
crash finally.
I''m using Rails on Windows XP with Ferret 0.11.4_mswin_32.
I could isolate the problem in the following simple controller action
(so there''s no web browser form field involved):
def test
index = Ferret::I.new
index
2007 Apr 29
1
Chinese full-text support! Still fail-_-
Hi all,
I want to use ferrent in my website but when i input chinese words, i
have the same symptom like Chengcai. In order to fix it, i have reviewed
all the topics about chinese support in our forum and tried all the way
your guys suggested but still made any progress. i downloaded the latest
version of ferret from svn.
Thanks and regards.
captain
Chengcai He wrote:
> Hello everyone!
2007 Sep 02
21
ferret for professionals
Hello,
I''m trying to setup ferret search engine(what i did successfully for
searching english phrases, words)
But i doesn''t work for UTF-8 symbols!!!
I tried to find the solution for this problem:
1) i add to enviroment.rb followinf lines:
ENV[''LANG''] = ''de_DE.UTF-8 at euro''
ENV[''LC_TIME''] = ''C''
2006 Jul 25
11
Prevent users from entering urls
How could I make it so that links on my page could link to a controllers
action, but if the user manually entered the url, it would redirect them
back to the main page? Is this possible?
Thank you,
-Ben Lisbakken
--
Posted via http://www.ruby-forum.com/.
2006 Apr 27
7
Role Based Authorization recipe implementation?
i got the rails recipes book, i have now an auth system for users
without problems, now i want to made a role based acces for my app, im
following the "Role Based Authorization" recipe of the book but i cant
make it to work even when the tables created and correctly added data
manually definig the roles and rights. als i dont know how to define a
right for use all the actions in a
2008 Mar 31
1
How to make a ajax (xhr) redirect?
Hi all,
In my application, I want seamless degradability so I use request.xhr?
to check whether a request is an ajax call. However here and there, I
need to use redirect_to - in this case the request is not xhr anymore,
and the check doesn''t work as expected. Is there a way to make xhr-
like redirect (which allow to get to another controller+action)?
Thanks,
- Chuong