Displaying 20 results from an estimated 200 matches similar to: "Specs don''t find modules when using the secure_actions or ssl_requirement plugin"
2007 Jan 29
2
Secure Actions Plugin
Hi all,
This plugin lets you specify which actions *must* be run under ssl
(https). If a declared action is run without ssl, the user is redirect
to https. Also, once you declare an action to "require_ssl", any links
to that action are going to be https:// links.
http://svn.ianwarshak.com/plugins/secure_actions
Hopefully you all will find this useful.
Ian
2006 Jan 23
1
ssl_requirement plugin: how do I override ssl_required?
The ssl_requirement plugin indicates that I can override the
ssl_required? method. I want to use this facility to ignore the ssl
requirement declarations when RAILS_ENV is anything other than
''production''.
My question is, where do I override this?
The relevant readme is:
http://dev.rubyonrails.org/browser/plugins/ssl_requirement/README
Also, does this plugin work with a
2011 Mar 11
2
ssl_requirement plugin still maintained?
I was looking at the "official repository" for ssl_requirement at
https://github.com/retr0h/ssl_requirement, and the last commit was in
2008. Is this plugin still maintained? If not, what''s the current
equivalent for Rails 3?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2006 Jul 11
4
validates_unlike plugin
Validates Unlike Plugin (v 0.1)
========================
Validates Unlike plugin validates that the value of the specified
attribute doesn''t match against the regular expression provided
Class Contact < ActiveRecord::Base
validates_unlike :comment, :with =>/html|http|onclick|onmouseover/ ,
:message => "comment can''t include: href,http,onclick,onmouseover."
2006 Jul 07
2
Problem with GetText 1.6.0 - undefined method ''N_''
I''m just upgraded GetText from 1.4.0 to 1.6.0, and all my tests got broken.
I got this error:
ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1129:in
`method_missing'': undefined method `N_'' for User:Class (NoMethodError)
etc
My model user.rb has this line:
validates_format_of :login, :with => /^[a-zA-Z0-9_]+$/, :message =>
2006 Apr 15
0
ssl_requirement, https, webrick and ruby
My Rails application passwords were travelling over the network as
plain-text. Maybe the users wouldn''t like it (I surely wouldn''t), so I
decided to use some kind of encryption.
I have done my little research and found the ssl_requirement Rails
plugin and installed it. But when I try to access a secured page, I
can''t establish a connection to the server. I thought this
2007 Jun 26
4
Fake SSL in specs when using ssl_requirement plug-in
Hi
I''ve used the ssl_required line from the ssl_requirement plug-in at
the start of a controller for SSL. Its implemented as redirects so I
can spec this...
describe "GET /gap/get_qote" do
controller_name :gap
it "should redirect to the HTTPS version of the action" do
get ''get_quote'', :id => "finance"
2008 Mar 17
0
ssl_requirement problems - https --> http
I am having problems with the SSL Requirement plugin.
It redirects to HTTPS no problem.
Problem is when I want it to leave HTTPS it stays!
Have put the following in apache ssl config:
<VirtualHost *:443>
ServerName codegarden.co.uk:443
ProxyPass / http://localhost:4003/
ProxyPassReverse / http://localhost:4003/
ProxyPreserveHost On
RequestHeader set X_FORWARDED_PROTO
2006 Nov 20
4
ssl_requirement not working
Forgive me if this isn''t 100% rails, but I''m trying to get
ssl_requirement to work and it sends my app into an infinite loop
because @request.ssl? is always returning false, even if I''m using
https://
For some reason, my @request isn''t getting any SSL info: neither
@request.ssl? nor @request.env["HTTPS"] return true.
I''m using pound/mongrel
2006 May 05
1
NameError when running exception_notification plugin?
Hi all,
I installed the exception_notification plugin via ''script/plugin
install'', and when configure it and try to run it, I get:
NameError
uninitialized constant ExceptionNotifiable
This error occured while loading the following files:
application.rb
exception_notifiable.rb
In my application.rb, I added this:
include ExceptionNotifiable
And in my development
2007 Oct 13
3
Endless Redirects with Ssl_Requirement
I''m running an application on mongrel with apache 2.2.3. SSL works
fine when I enter an https manually. But when I use the plugin, I get
an endless redirect.
Got the same error when I tried running the following simplified
version of SslRequirement from within an action:
unless request.ssl?
redirect_to "https://#{request.host}/#{request.uri}"
end
So there must be a
2006 Apr 11
1
FeedValidator :: validating feeds RSS or ATOM
FeedValidator is an interface to the W3C Feed Validation online
service, based on its SOAP 1.2 support.
It helps to find errors in RSS or ATOM feeds.
FeedValidator add a new assertion (assert_valid_feed) which you can use
in Rails applications. This assertion implements a cache to improve the
performance of the tests and to not abuse of the W3C Feed Validation
online service.
= Download
The
2007 Aug 31
2
How to spec routes for a resource nested in multiples resources?
Hi,
I got the resource "Llamadas" nested in:
- Operadores
- Productos
- Centros
Here is part of my routes http://pastie.caboo.se/92767
I want to spec that the routes for Llamadas, I tried several approachs:
- route_for(:controller => "llamadas", :action => "exitosas",
:operador_id => 1).should == "/operador/1/llamadas;exitosas"
-
2007 Jan 06
6
Exception notifier not working
I installed the exception notifier via:
/script/plugin install -x exception_notification
It resides in the vendor/exception_notification directory (as
advertised). I''ve configured environment.rb with the following:
ExceptionNotifier.exception_recipients = %w(blakemiller-uBzjpPW2m0pBDgjK7y7TUQ@public.gmane.org)
ExceptionNotifier.sender_address = %("Application Error"
2006 Jan 27
6
Switchtower deploy error
I''m trying to deploy a rails app with no success.
I can execute: ''rake remote_exec ACTION=setup''
but when I try to execute : ''rake deploy''
I got this error:
loading configuration c:/ruby/lib/ruby/gems/1.8/gems/switchtower-0.10.0
/lib/switchtower/recipes/standard.rb
loading configuration ./config/deploy.rb
executing task deploy
transaction: start
2006 Aug 17
1
How to know in the layout what view was rendered?
Hi,
Is a way to know in the layout what view was rendered?
--
Edgar Gonz?lez Gonz?lez
E-mail: edgargonzalez@gmail.com
--
2006 May 05
3
exception_notification plugin not sending mails in development on localhost
Hi everyone,
So, I''ve got exception_notification working now, but not in
development mode on localhost. In my ApplicationController, I''ve
added:
local_addresses.clear
Shouldn''t that be enough?
Thank you!
Sean
2006 Feb 06
1
How to pass an additional parameter from the url to a xmlrpc service?
guys,
I have a RoR App with a xmlrpc service, which attende a several clients
recently I need to change the xmlrpc service in order to provide an
additional parameter from the clients, but I don?t want to force a change in
the clients''s xmlrpc code, so is possible to pass this additional parameter
in the url? every client append his own new parameter to the url to access
the xmlrpc
2007 Dec 04
1
ssl_required being ignored?
Hi everyone! I want to require SSL for a single action in one of my
controllers (for logging in, and sending a password).
Working off of the skateboard book, I have added:
include SslRequirement
to my application controller, and then in the login controller, I have
added the line:
ssl_required :login
This does not give me any errors, but it does not redirect me to https
either. It simply acts
2006 Jan 28
1
Switchtower different svn repo urls from my local box and my shared hosting
I got problems running switchtower 0.10.0 when I try to run "rake deploy"
from my local box (windows) to my shared hosting
If I set the repository to (deploy.rb):
set :repository, "file:///home/[my_user]/repo/[my_app]/trunk"
My local box (windows) can''t reach the subversion repository located in
site5
If I set the repository to:
set :repository,