Displaying 20 results from an estimated 10000 matches similar to: "login pre-filter and post data problems"
2010 Apr 26
2
woriking under webrick but not under passenger
Hi!
I have just added login feature to my rails application (followed the
instruction from (Agile Web Development with Rails) but now I am getting
strange errors (looks to me like some kind of routing problem) under the
passenger/apache.
The error is:
500 Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
From the log:
2007 Nov 02
4
Login Redirect - Hacking the session[original_uri]
Hi There,
I have several ajax elements that require authorization, but for various
reasons, they can''t pass session[original_uri] to the redirect on user
log in. I''m trying to hack in a uri by passing a param to the login
page.
I can see that the param is passing into the login page, but for
whatever reason, no matter what I do, the user is redirected to the
homepage after
2008 Sep 16
0
POST parameters incorrectly appended to REQUEST_URI
My rspec controller tests are appending POST params to the request_uri
as though they are GET variables.
So this line:
post :create, :foo => ''bar''
Generates a request_uri that looks like this:
my_restful_controller?foo=bar
However when performing the same action from the actual application, the
params are not appended to the request_uri (as expected).
Looks like this
2006 Aug 08
0
0.3.13.4 Pre-Release -- Almost Ready
Hi folks,
I just put a pre-release of Mongrel up for people to try. You can
install it with:
gem install mongrel --source=http://mongrel.rubyforge.org/releases/
And try out your application and confirm the stuff works.
USE RFUZZ AND RUBY
If you find a bug, I''d appreciate it if you can go grab RFuzz (or use
net/http) and work up a little bit of Ruby that demonstrates the bug.
If
2005 May 21
0
How can I get a post-Routing translated url_for?
Is there a way to ask the Route system what controller and action
mapping will be used, given a hash containing :controller and :action?
I am trying to generalize the case where there is a button bar (e.g.
tabbed pages) having one image shown if you are presently visiting
that page, and another shown if you are not presently visiting that
page (e.g. an "active" and an
2006 Jul 16
9
acl_system help is needed
i found Ezra''s acl_system plugin yesterday and i am trying to figure it
out.
based on the simple instructions on the site, it does exactly what i
need but i''m getting some errors when i try to use it:
NoMethodError in UsersController#index
You have a nil object when you didn''t expect it!
The error occured while evaluating nil.roles
i am pretty new to rails and
2006 Jul 19
1
using link_to_remote to post form values
Hi,
I have a website in which I am attempting to post certain form values back
to my controller using link_to_remote. I need to do this without any
additional form tags, as it is already within a larger form. I have found a
mod that i think would do this @ http://dev.rubyonrails.org/ticket/2137 but
unfortunatly the site is down right now. Does anyone have any ideas on the
best way to implement
2011 May 08
5
Am I being to paranoid?
Hi All,
I want to know thoughts on if I am being to paranoid/security conscious.
CentOS 5.6, Apache, MySQL, running an Firewall in front of everything and obviously the built-in firewall on the box. I have ssh on a different port and starting to use Keys instead of password authentication. I host an intensive website and I am getting about 150 unique visitors per day.
What I am seeing is
2006 May 15
0
Accessing raw get/post?
Hello all,
could someone please tell me if there a simple way to access the raw
GET and POST values without going through params or manually parsing
the request.env[''REQUEST_URI''] string? I''ve looked through the
documentation without any success.
something like $_GET[''var''] from php would be ideal.
Thanks for your time,
Gavin
2007 Feb 21
1
setting session data from a post
I''m using acts_as_authenticated, and I''m trying to run some tests where
the user must be registered. In the past, I''ve just included a user id
in the session data.
def test_login_loads_from_post_session
post :new, nil, { :user => 7 }
session = assigns(:session)
assert_equal 7, session[:user]
end
My assert statement seems to be failing because my session is
2006 Apr 04
1
integration tests - 1.1
I?m using the new 1.1 integration test facility? I?m trying to write a
test that sees if a controller redirects to the correct place and
preserves the query string.
Here?s the code:
class LoginRedirectTest < ActionController::IntegrationTest
def test_non_admin_auth
request_uri = "/datafeed/event/report?blah=blah"
get(request_uri)
follow_redirect!
2018 Jun 30
0
[Bug 1266] New: bridge-nf-filter-pppoe-tagged mtu bug?
https://bugzilla.netfilter.org/show_bug.cgi?id=1266
Bug ID: 1266
Summary: bridge-nf-filter-pppoe-tagged mtu bug?
Product: netfilter/iptables
Version: linux-2.6.x
Hardware: All
OS: RedHat Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: bridging
Assignee:
2006 Jun 16
0
rake spec controller test output hideus.
Is there any way to change the output of rake spec fails?
The errors are just totally over the top ugly and not helpful. First
of all the ruby -Ilib line always comes before each test and I find it
distracting. But if an error occurs on something that is not nil it
just gives me the entire contents of that object and that is no small
matter when the object is a HTTP request response.
Here is
2009 Jun 17
2
Using a cgi perl program?
I have a cgi/perl program that I want to use on the same server as my
RoR app and I keep getting:
The page you were looking for doesn''t exist.
You may have mistyped the address or the page may have moved.
I load the program to the cgi-bin directory in its own folder /cgi-bin/
fump/
In the /public folder of my app I have the following .htaccess file:
# General Apache options
2007 Mar 29
0
Resolved problem with Apache Load Balancer Manager
Had to make a couple of changes to the config from the mongrel site to get
the load balancer manager working:
changed
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L]
to
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME}
2007 Dec 23
1
Rails: possible routing discrepancy
Hey all, I''m seeing a strange behavior in my spec that I can''t
account for. I''ve got a route that looks like this:
map.writing \
''/writing'',
:controller => ''abstracts'', :action => ''index'',
:index => { :select => ''all'' }
and I have template code that looks like this:
<br
2006 May 19
0
No luck with multiple before_filters
I''ve got these two lines set up in my controller
before_filter :check_authentication
before_filter :check_max_hands, :only => [ :play ]
Here''s the corresponding code for each
def check_authentication
unless session[:user] and authorize?(session[:user])
session[:intended_action] = request.request_uri
redirect_to :controller => ''user'',
2007 Aug 17
1
Scaffold (Agile Web Development With Rails)
What am I doing wrong here?
[app/controllers/admin_controller.rb]
class AdminController < ApplicationController
before_filter :authorize
def index
list
render :action => ''list''
end
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :destroy, :create, :update ],
2016 May 28
5
CentOS 6.8 Apache-2.2.15-53 re-write question
I was wondering if somebody could help me with an Apache re-write rule. Apparently CentOS 6.8 is running apache-2.2.15-53. I am trying
to redirect all pages except for two pages. The apache rewrite directives in the httpd config are:
RewriteEngine on
RewriteCond %{REQUEST_URI}!^/test/
RewriteCond %{REQUEST_URI}!^/my-folder/
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
These commands
2008 Nov 05
3
Problems w/ before_filter getting ignored
Hello,
I''m setting up an authentication module that will be called from
application.rb. I want to save a rrequest.request_uri into a
session to be used as a place holder that
will take users back to the page they were on before they logged in.
I''m trying to call the store_location method for all methods EXCEPT
login by putting login in an except before filter.
For some