similar to: ssl_required being ignored?

Displaying 20 results from an estimated 2000 matches similar to: "ssl_required being ignored?"

2009 Oct 17
1
Routing Error if using ssl_required
Hi everyone, I am running into a routing error when activating ssl. Everything works fine, when I put ssl_required :index into the controller I get a routing error Routing Error No route matches "/meinkwikit" with {:method=>:get} I installed the ssl plugin and put include SslRequirement into my application_controller. Does anybody know what I am doing wrong? Thanks in
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
2006 Mar 30
4
SSL Requirement plugin
Is there any way to have the plugin require SSL to be used for all actions in a controller and just specify the ones you dont want to require SSL using ssl_allowed? class ApplicationController < ActiveRecord::Base include SslRequirement ssl_required *.* Many thanks. Also I could of course combine this with local.request? so that when developing locally http is allowed, but
2008 Jun 12
2
SslRequirement Problem
Hello everyone, I''m pretty new to the RoR''s thing and am having a problem setting up SslRequirement plugin. I have installed the SslRequirement plugin and added it to my application_controller.rb with include SslRequirement However, when I try and do "ssl_required :process_payment" I get the following error: undefined method `ssl_required'' for
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
2007 Jan 23
2
SslRequirements plugin and mocha
Hi. I''m loving mocha but have ran into a problem with using the mocha plugin with a project that has the SslRequirement plugin. It seems there is some conflict between the two? Any ideas? $ ruby test/functional/calendar_controller_test.rb /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:478:in `const_missing'': uninitialized constant
2011 Mar 26
2
Rails 3 + SSL
After reading tons of posts about buying certs, etc, I''m still confused. Please point me in the right direction. Here''s the question: I have a rails3 site (www.mysite.com). I want to have some pages use ssl, and some not. It appears the require_ssl approach is pre-Rails3 and there are other alternatives. Most of the posts I read talk about using a diff domain for ssl
2008 Feb 24
3
params checking in controller before real action
I want to perform certain action in controller based on request parameters. Is there some way to access params in controller before a real action? Like in following code: class UsersController < ApplicationController # params[:type] in here does not work ssl_required :create if params[:type]=="something" def create # params[:type] works in here. end end If not,
2009 Jan 22
0
script/plugin and polluted(?) sources
I recently had trouble installing the ssl_requirement plugin. script/plugin said it couldn''t find ssl_requirement. I "solved" this by running "script/plugin discover" and accepting the addition of a bunch of other repositories. The script could then discover and install ssl_requirement. BUT: It wasn''t the same version of ssl_requirement that I''d
2007 Oct 23
9
Running rails specs outside of the normal project tree
I want to create a spec/regressions directory with various regressions (for my rails project). I tried the following: describe LoginController, "regression for user creation when steves_sister does not exist", :behavior_type => :controller do controller_name :login before :each do @params = { "commit"=>"Create Account",
2005 Nov 19
1
How I provide a session object to Functional Tests?
People, I''m looking at p. 152 in the Rails book where he talks about testing controllers [ functional tests ]. First he shows a method, test_login_with_valid_user, which tests that it''s possible to login with a valid user/password combo. Then, he talks about extracting the code he just wrote and placing it into a login method inside of test_helper.rb Once the method is there,
2007 Jun 29
1
[PATCH] [BUGFIX] Disallow save / migrate of a domain with real PCI devices
If a domain has PCI devices then we can''t safely save or migrate it. At least one user has had system crashes due to this, and the way the xendomains script automatically saves and restores domains on reboot. Since there''s no sensible semantics for it at the moment, we should disallow it and return an appropriate error message to xm. The first attached patch prevents the
2007 Feb 13
2
Network under Vista?
Hi, Anyone here got networking under Vista? I''m using the emulated realtek network device and have configured IP in the Windows guest. tcpdump confirms that the guest is arping and that responses are going to the tun network device, however for some reason Vista doesn''t seem to be getting the responses.... I''d be interested to know if anybody else has seen /
2012 May 01
1
uninitialized constant LoginController in Ruby
This is my environment.rb # Load the rails application require File.expand_path(''../application'', __FILE__) # Initialize the rails application Qstack::Application.initialize! require ''koala'' This is my application_controller.rb class ApplicationController < ActionController::Base # protect_from_forgery before_filter :parse_facebook_cookies def
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"
2006 Apr 19
6
undefined method `create_table'' for #<LoginController:0x5e60
I am geeting the foolowing error. undefined method `create_table'' for #<LoginController:0x5e60110> I wrote the crete action in application controller. I am coping ther total worng please help me! class ApplicationController < ActionController::Base model :cart model :line_item before_filter :authorize def create # create_table() yields a TableDefinition instance
2008 Jan 16
4
ActionController::InvalidAuthenticityToken in LoginController
Hi, I''m having a problem trying to get a login controller working. When I try and post to my login controller I get the following error: ActionController::InvalidAuthenticityToken in LoginController#login login_controller: class LoginController < ApplicationController def login case request.method when :post if @session[''user''] =
2007 Jan 19
2
route issue after update to 1.2.1
Updated...(trimmed comments) $ gem list *** LOCAL GEMS *** actionmailer (1.3.1, 1.2.5) actionpack (1.13.1, 1.12.5) actionwebservice (1.2.1, 1.1.6) activerecord (1.15.1, 1.14.4) activesupport (1.4.0, 1.3.1) postgres (0.7.1) rails (1.2.1, 1.1.6) rake (0.7.1) rmagick (1.14.1, 1.13.0) sources (0.0.1) Updated application... $ rake rails:update (in /home/craig/svn/th-db/branches/phase3) install -c -m
2009 Jul 31
6
Background daemon
It''s sending e-mail every hour, but I changed to sleep for a day, but keep send the e-mail by hour. I don''t know what to do to send daily. Could somebody help me? thanks ############ # mailer.rb ############### #!/usr/bin/env ruby # You might want to change this ENV["RAILS_ENV"] ||= "production" require File.dirname(__FILE__) +
2006 Apr 22
5
ActiveRBAC 0.3.1 Released
Hi I am happy to announce the 0.3.1 release of ActiveRBAC Engine. The biggest improvement on the 0.3 release is that it runs with Rails 1.1 now. Get your personal copy now from https://activerbac.turingstudio.com/releases :) There is a manual PDF with a tutorial available at https://activerbac.turingstudio.com/releases/ActiveRbacManual.pdf which is also included in the full