search for: consider_all_requests_loc

Displaying 20 results from an estimated 29 matches for "consider_all_requests_loc".

2005 Oct 06
5
webrick seen only on local machine
I am running the webrick server (/script/server) and I would like to be able to view the application from any browser. However, I can only see my application from a browser opened up on the localhost. When I use any other browser it times out. I have already modified the following line in the /script/server file (I''ve tried the numeric ip address also) so that it is the real ip
2005 Jan 11
7
default error page
Help, please. I need redirection to a custom error page, instead of the default Rails messages (e.g. Unknown action). I use WebRick, no Apache, and i think i can''t use public/.htaccess (# General Apache options). Thanks. ___________________________________ Nuovo Yahoo! Messenger: E'' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica… Scaricalo ora!
2006 Mar 14
7
Application error (Rails)
After I attempted to add ActionMailer functionality, it gave the "Application error (Rails)" and now, everything on my site works, except for the part where the Actionmailer ''would have'' sent the email. I took that out now, re-uploaded the file, and ran "killall -USR1 dispatch.fcgi" and still nothing. Everything else works, except that. Any idea what
2006 Jun 21
3
Show Exceptions in Production mode.
Does someone know what to set so that exceptions are shown (to user) when in production mode? I would like the exception to show exactly as it does in development mode. I know that they are written to the log. Richard RogueWaveMarine.com -- Posted with http://DevLists.com. Sign up and save your mailbox.
2009 Apr 26
4
Weird auto-complete production problem in Rails 2.3.2
Hello. ruby 1.8.6 (patchlevel 111) rails 2.3.2 Windows XP Professional I am getting quite a weird problem. I have several auto-complete fields in a page. When I run the code in development mode everything works but when the application runs in production mode one and only one of the fields does not auto-complete anymore. The database being used is the same in both cases (I''m just
2009 Feb 04
2
rendering error page for "Unauthorized" from before_filter
...e I see the "Unauthorized!" text being rendered. I also went into the rails source and tweaked the rescue module a bit so that I surely get the ''public'' view of the exception: def rescue_action_without_handler(exception) (...) if false && (consider_all_requests_local || local_request?) # here rescue_action_locally(exception) else rescue_action_in_public(exception) end (...) That did not change anything, either. Am I not doing the proper thing? Should I throw an exception (which one?) instead of rendering something and...
2006 Feb 03
2
testing to see if emails are sent out on exceptions
Hi, I''m using ActionController::rescue_action_in_public() to send emails when uncaught exceptions happen. Is it possible to write tests for that? Joe
2009 Jun 10
1
[PATCH] remove rails2.3 deprecated config.action_view.cache_template_extensions
...onments/development.rb b/src/config/environments/development.rb index b3acf68..9bd4fa6 100644 --- a/src/config/environments/development.rb +++ b/src/config/environments/development.rb @@ -33,7 +33,6 @@ config.whiny_nils = true # Show full error reports and disable caching config.action_controller.consider_all_requests_local = true config.action_controller.perform_caching = false -config.action_view.cache_template_extensions = false config.action_view.debug_rjs = true # Don't care if the mailer can't send -- 1.6.0.6
2005 Sep 27
2
caching in development mode
...these classes are being cached in development mode. Controllers are not cached, neither are models extending ActiveRecord::Base. Has anyone else seen this? Here are my relevant development.rb settings: Dependencies.mechanism = :load ActionController::Base.consider_all_requests_local = true ActionController::Base.perform_caching = false thanks, Jeff
2007 Jan 11
0
writing tests for rescue_action_in_public
...public(exception) render :text => "oops" end def local_request? false end Also, I altered the environments files so I won''t get the standard developer error messages (although this seems like possible overkill) development.rb -------------- config.action_controller.consider_all_requests_local = false test.rb ------- config.action_controller.consider_all_requests_local = false In my functional tests, I chose a random controller to use, and commented out the local rescue_action, so the test won''t stop when rails hits an error (I assume this is what I want, because I wan...
2007 Sep 08
1
Unknown Action doesn't raise exception ?
As I am in development environment, I wrote in my config/environment.rb ActionController::Base.consider_all_requests_local = false in my application.rb, I wrote def rescue_action_in_public(exception) case exception when RoutingError, UnknownAction render :file => "#{RAILS_ROOT}/public/404.html", :status => 404 else logger.error "Error raised:...
2009 Feb 06
6
RecordNotFound bubbling thru to cucumber
...s a RecordNotFound exception if you''re not allowed to see something. In my global application controller (application.rb), I catch these and render the 404 template. But when I run cucumber (using webrat), it''s getting the full stacktrace (the step blows up). Any ideas why? I have consider_all_requests_local turned off in my test.rb. Jeff
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
2013 Jun 18
1
Getting rspec error: Net::SMTPServerBusy: Relay access denied
...quot;)].each {|f| require f} RSpec.configure do |config| config.use_transactional_fixtures = true config.infer_base_class_for_anonymous_controllers = false endend Spork.each_run do FactoryGirl.reloadend test.rb: Upficial::Application.configure do config.whiny_nils = true config.consider_all_requests_local = true config.action_controller.perform_caching = false config.action_mailer.delivery_method = :testend The test itself is very straightforward: require ''spec_helper'' describe User do it "sends a confirmation email" do @user = FactoryGirl.create(:use...
2008 Apr 30
12
Strange memory issue
Like most, I have a test and a production env. Both are CentOS 5, Ruby 1.8.6, Rails 2.0.2, MySQL 5, and Apache. Both were setup using the same procedure. Except for the hardware (test: Intel, prod: AMD) and memory (test: 512M, prod: 1G), both systems are essentially the same right down to the Rails env. Unfortunately, memory usage is very different for each. The test system has 2 mongrel
2007 Mar 24
6
Rails Development Log
Hi, I am using Ruby+Rails with Mongrel. Is there any way to disable logging so that everytime I start rails (mongrel_rails start), it doesn''t automatically start logging info to development.log Thanks! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2006 Jul 01
1
exception_notification only happening one sub domain
folks. I have dev.domain.org and qa.domain.org. I have two copies of same rails application on the two diff subdomains. When an error happens only dev.* exception_notification sends email. For qa.* I get the RuntimeError. Not the 500.html file. Donnow what''s happening. I am on Site5, FastCGI, Apache 1.33 Thx ajay -- Posted via http://www.ruby-forum.com/.
2006 Jun 25
0
debug output does not show up in the browser window
...quot;Debugging info will also be shown in the browser on requests from 127.0.0.1." I can not make this work, I only get the wsod in the browser, and all the debug output in the log/development.log file. In my config/environments/development.rb I have the following: config.action_controller.consider_all_requests_local = true config.action_controller.perform_caching = false config.action_view.debug_rjs = true config.action_controller.debug_routes = true This is a simple app with not much in it yet. I am doing something worng? Can someone please help me put th...
2005 Dec 22
1
Can 404.html use the default layout?
Hi everyone, How do I get the 404.html to use the default layout in app/layouts/application.rhtml? Or is that the wrong question? Should I be rerouting 404 errors to an application controller action, which I can then customize as a 404? Thanks, Sean
2010 Sep 04
0
CSRF protection not working with jquery ajax post request
...$.ajax({ type: "POST", data: ({ lo: 67, pi: 22 }), url: ''/test/set'', }); }) }); I have also include in the application controller protect_from_forgery and have set in development configuration config.action_controller.consider_all_requests_local = false However the post command is completed successfully. Does anyone know why the protection is not working? Thank you -- 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 rubyonrails-talk...