similar to: request.remote_ip

Displaying 20 results from an estimated 6000 matches similar to: "request.remote_ip"

2006 Aug 02
12
Authenticate with an IP address : LoginGenerator
Is there a way to authenticate with an IP address? I''m using the LoginGenerator, but would like to bypass the "before_filter :login_required " if a user is in a correct IP range... Anyone know of a solution? Thanks! -- Posted via http://www.ruby-forum.com/.
2008 Feb 24
1
Problems with request.remote_ip
Hello everyone, I am trying to use request.remote_ip in my application to log a user''s IP address because I have been having a lot of abuse issues. basically when a user logs I simply call user.update_attribute(:last_ip, request.remote_ip). The problem is that for some reason a lot of people that have recently logged in still have NULL listed as their last_ip in the database, even
2009 Feb 09
3
can't call request.remote_ip from object?
class User def update_metadata self.update_attributes({:last_login_at => Time.now, :last_known_up => request.remote_ip, :last_known_user_agent => request.user_agent}) end This does not work. It bombs out with: undefined local variable or method `request'' for #<User:0x1e146e0> But the request calls work in a
2007 Nov 23
4
help! problem with mongrel, request.remote_ip and lighttpd
I have an existing rails application on lighttpd and I am trrying to upgrade to mongrel for the enhanced scalability it offers. I am running mongrel 1.1.1, rails 1.2.5, lighttpd 1.4.13 and ruby 1.8.5 Everything is working great except request.remote_ip returns 127.0.0.1 or 192.168.0.102 (the internal network address of the server running lighty). I''ve seen some older posts about
2007 Jul 17
12
Getting past my login system
Thank you in advance for your help. I am relatively new to both Rails and Rspec and I am hoping for some insight from some experienced veterans. Right now I am using Rspec for code that has already been written so that additional functionality can be developed using the BDD method. My problem shows up when I try to spec controllers that are behind the login system. Each page checks for the
2007 Nov 23
2
Unable to read anything from request.remote_ip
For some users, request.remote_ip always return nil. According to the RAILS''s help: REMOTE_ADDR is the standard but will fail if the user is behind a proxy. HTTP_CLIENT_IP and/or HTTP_X_FORWARDED_FOR are set by proxies so check for these before falling back to REMOTE_ADDR. HTTP_X_FORWARDED_FOR may be a comma- delimited list in the case of multiple chained proxies; the first is the
2008 Sep 03
1
request.remote_ip returns kok + ip
What is this? When I use request.remote_ip in my rails app and print it to a web page it says "kok" and then the ip. What is that word there for? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email
2009 Jan 09
6
Accessing request.host in UserMailer
I am using subdomains in my application to control context. Therefor, during user registration, password reset, and other actions that require an email to be sent with a link to be clicked, I need to ensure that the subdomain appropriate for the user is used. It seems I need to be able to access request.host from within an ActionMailer model. But I am not clear how to do this. Any help would be
2006 Jan 19
4
Relationships... not the personal kind!
Hello all, I''m very new to Rails and I love it so far. However, there are some things that aren''t so clear to me. Let''s say a blog post can have many comments, and a comment can only belong to one post. A user can have many posts and many comments as well. (this part makes perfect sense): class Comment < ActiveRecord::Base belongs_to :posting belongs_to :user
2006 May 15
3
Page hit counter?
Hello all, Yet another "don''t reinvent the wheel" n00b question: Is there an ''official'' page hit counter plugin/code snippet/whatever? I would need something like this: - It is possibility to set a constant timespan (say 5 hours). - On every page hit, save away @request.remote_ip and Time.new - The counter gets incremented only if the same IP was here
2015 Apr 09
3
rsync error: error allocating core memory buffers
Hi, I've configured 'backuppc' to transfer files via rsyncd, with enabled checksums. Whith one of the shares I get the error (in syslog): --------------------------------------------------------------------- robbe rsyncd[2183]: ERROR: out of memory in receive_sums [sender] robbe rsyncd[2183]: rsync error: error allocating core memory buffers (code 22) at util2.c(106)
2006 Feb 22
5
Can't join my domain
Guys and dolls, Greetings, I hope you all are in good health, great spirits and your glasses never empty. I have a samba, openldap question. I am trying to setup a FC-4 box to be a PDC for a small network of about 150 users. I was following the HOWTO on the SAMBA site. Everything seems to be fine however I cannot join the domain. I get the error "User name could not be found." The
2005 Sep 27
1
Samba 3 as PDC with Debian Linux server and Windows XP clients
Dear list I am relatively new to networking problems of this kind so apologies for the potentially simple question. I am trying to upgrade an existing network to one using Samba 3 to configure roaming XP profiles on a limited number of clients. I have re-written the smb.conf file to reflect what I think are the appropriate settings, and this passed testparm successfully, but I am unclear
2010 Mar 02
1
request.remote_ip with AJAX
Hello everyone. I have a problem with "request.remote_ip" I made an array: 1 ip = request.remote_ip 2 $ address [ip] = (: test => "OK") ... ... ... 11 ip = request.remote_ip # (along with a lot of AJAX calls) 12 response = $ address [ip] [: test] It often works, but sometimes it gives me this error: NoMethodError (undefined method `[] ''for nil:
2006 Sep 27
2
Samba 3.0.23c panic
Hi, I've just updated (using yum under fedora 5) to the latest version of samba and am now encountering a major problem with samba. Whenever I attempt to access shares (don't have printers or other such non disk shares) the access fails (after prompting for password, and performing some level of authentication, it notes if no password is entered that Anonymous login successful).
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
2008 Jul 28
0
Re: remote_ip always returns 127.0.0.1 (apache)
On Mon, Jul 28, 2008 at 3:09 PM, Luca Scaljery <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > I have my webrick server behind apache (all on the same server). The > problem I have now is that request.remote_ip always returns 127.0.0.1. > So it gets this IP from apache (I guess). How do I get the true client > IP address request.env[
2003 Dec 07
6
Hi
Hello: Where find ssh src for arm-linux . thanks! JJ.Mic
2011 May 21
4
request.format = :mobile causes error "undefined method `ref' for nil:NilClass"
I have a strange problem with setting request.format = :mobile I can reproduce this problem on a completely fresh Rails 3.0.7 app with no special gems. This seemed to work well in Rails 2 but for some reason is hiccuping here, not sure what''s different in Rails 3 that makes this hiccup. If you look at the stack track, it doesn''t even pass through my app stack once -- weird --
2006 Sep 28
1
initialise_wins failing - failed to open wins.tdb
Hi Guys, Since the automatic fedora update to 23c I'm having problems with samba crashing when a share access is attempted. However, I also notice that the nmbd daemon isn't being started up properly (though its startup script, through init.d, shows it as starting up OK). The error that is being shown in the logs is: [2006/09/28 20:06:35, 0]