search for: application_control

Displaying 20 results from an estimated 124 matches for "application_control".

Did you mean: application_controler
2010 Jul 05
1
[PATCH] gettext initiation problem Thanks to Thibault Deloffre <tdeloffre@linagora.com>
From: root <root at ovirt.admin.virt.par.lng> Signed-off-by: root <root at ovirt.admin.virt.par.lng> --- src/app/controllers/application_controller.rb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/app/controllers/application_controller.rb b/src/app/controllers/application_controller.rb index 4c4666e..c7f8431 100644 --- a/src/app/controllers/application_controller.rb +++ b/src/app/controllers/application_cont...
2009 Sep 10
1
undefined method `protect_against_forgery?'
....4/lib/action_view/ helpers/prototype_helper.rb:449:in `remote_function'' /home/sdr/workspace/sp/vendor/plugins/tree/lib/node.rb:79:in `internal_link_to_remote'' /home/sdr/workspace/sp/vendor/plugins/tree/lib/node.rb:31:in `initialize'' /home/sdr/workspace/sp/app/controllers/application_controller.rb:59:in `new'' /home/sdr/workspace/sp/app/controllers/application_controller.rb:59:in `add_children'' /home/sdr/workspace/sp/app/controllers/application_controller.rb:45:in `set_sidemenu'' /home/sdr/workspace/sp/app/controllers/application_controller.rb:44:in `each'&...
2010 Mar 31
1
[PATCH] Upgrading the server to work with Rails 2.3.4.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- src/app/controllers/application_controller.rb | 2 +- src/config/environment.rb | 2 +- src/config/initializers/new_rails_defaults.rb | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/app/controllers/application_controller.rb b/src/app/controllers/application_controller.rb index 7...
2008 Feb 22
7
Testing misc methods in ApplicationController
I''m already successfully testing before_filters in application_controller courtesy of this blog post: http://www.movesonrails.com/articles/2008/01/23/spec-ing-your-application-controller However, i can;''t work out how to test the sort of method that is added to application_controller so that all controllers can use it. It must be something simple that i'...
2007 Dec 03
2
before_filter application => exclude some other controllers
Hello again, It''s possible to use before_filter in the application_controller, and exclude for some methods from other controllers ? i have a before_filter in application_controller that checks if the user is logged, if the time hasn''t expired, ... and I want to exclude some methods of this check, like the login. This ''login'' belongs to other...
2010 Feb 09
4
Rails3 pre and protect_from_forgery
I''ve almost entirely converted a rails 2.3.5 app to 3pre. I''m having some trouble with protect_from_forgery. I had protect_from_forgery set in application_controller.rb, but run some uploadify ajax stuff in one of my controllers, where I had protect_from_forgery, :except => :add_file set. In rails 3 I''m getting ActionController::InvalidAuthenticityToken on the ajax upload unless I turn off protect_from_forgery completely in application_controlle...
2009 Oct 18
4
NoMethodError in User sessionsController#new
I''m setting up authentication with Authlogic and I get this error. I''ve done some searching but with no success. I tried setting the current_user method in Application_controller to protected and not private, on the recommendation in Stack Overflow. Error in browser----------------- NoMethodError in User sessionsController#new undefined method `require_no_user'' for #<UserSessionsController: 0x24fc700> Error in terminal------------------ Processing User...
2010 Jul 02
6
making something available application wide
...lers, I don''t want to be non-dry and repeat @banner_url = BannerAdvert.first.url all over the place. I''d like to set @banner_url = BannerAdvert.first.url application wide for now - how do I do this, should be easy but I''m having a Friday afternoon mental block! I thought application_controller and application_helper, but putting the code in either of those two didn''t work. Please help cure my insanity, any inspiration really appreciated. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rai...
2010 Nov 29
0
[TDD] [Rails] - Rspec test for application_helper.rb fails when trying to access application_controller method.
In a method named logo in my application helper, I reference an application controller method (current_account) that has been marked as a helper method with the following syntax: helper_method :current_account When I test out the setup in the browser (without rspec), rails is happy with this setup. However, when I run the spec, the spec won''t pass and gives me the following error:
2007 Nov 20
3
Plugin: can't call before_filter in ApplicationController
Hi all I want to outsource an extension for ApplicationController, that I had in application.rb so far, into a plugin. I have created this plugin, and in init.rb I load require File.dirname(__FILE__) + ''/lib/application_controller'' In lib/application_controller.rb I have the following code: class ApplicationController before_filter :prepare_user ... end This worked without a prolem so far. But when I try to start Webrick now, I get the following error: josh$ script/server => Booting WEBrick... /Users/...
2006 Jul 23
4
Anything like with_scope for ActionController?
There are areas of my application that "want" to use a url structure like domain/<human_readable_param>/<Module>/<Controller>/<Action>/<Id> Please note that the human readable parameter I need to inject is NOT related to the <id> being used by the action/controller pair. It''s identifying a container object whose contains are operated
2006 Aug 08
1
Suggestion: environment.rb Includes
...s can offer, but practical implementation issues make adding and removing more tedious than it should be. The process typically requires: - manual modifications to environment.rb ( e.g., adding engine configuration and "Engine.start :myengine" - manual modification to app/controllers/application_controller.rb This should be more automatic and flexible, as with http.conf includes in Apache: Include includes/* Installation scripts can thus add new functionality simply by copying their boilerplate configurations to an include directory, and no changes would need to occur in environment.rb or...
2012 Feb 01
6
Does Devise make use of a "status" method? Weird bug.
...leanup_view_runtime'' vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'' vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:39:in `render'' app/controllers/application_controller.rb:9:in `status'' Look at that last line -- the status method of the application_controller. This is an addition from the legacy code, a simple monitoring method they installed so that the app responds to a "/status" call with the text "UP". I know this to be the...
2006 Feb 21
4
Models, Helpers, Modules, etc.
Hello, I am learning rails and ruby and I have some questions about how should I go about doing certain things. [1]Many of my models have some functionality which is common, and instead of duplicating it across models, I want to store it in a single file, and then import the file into the models. Should I do this using modules, and then store them in the `lib'' directory? What is the
2006 Jan 29
15
Reload the lib directory
Im writing a module in the lib directory. If I change the module, the changes are not visible to the application when i releod the web page (i am in the development evironment). I must restart the web server (WEBrick) and so i see the changes... but I lost more time. How can I reload the module in the dirictory lib, without reload WEBrick? Thanks so much --Reis -- Posted via
2006 Mar 22
3
stack level too deep error : Pulling my hairs out
Hello, I''ve changed something in my test application and since I can''t find the cause of the "stack level too deep" raising on every request. I''ve removed almost every part of code and the error still occurs, eg with this url : www.myhost.com/main/index routes.rb (nothing else in this file) map.connect '':controller/:action/:id''
2009 May 12
1
Running rake test:units yields DEPRECIATION WARNING: Disabling sessions for a single controller...
...ng sessions for a single controller has been deprecated. Sessions are now lazy loaded. So if you don''t access them, consider them off. You can still modify the session cookie options with request.session_options.. (called from C:/Users/Wayne/ Documents/Aptana Studio/chores/app/controllers/ application_controller.rb:10) Loaded suite C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/ rake_test_loader Started EEEE.....EEEEEEEE.EEEEEEE Finished in 2.086 seconds. What am I doing that has been deprecated? How do I fix? Thanks, Wayne
2010 Jul 27
4
Ruby on Rails 3 RC and files in "lib" directory
In Rails 3b4 my ruby files in the lib directory of my application were automaticaly loaded/required. In Rails 3rc1, there are not anymore. Is this normal? Where is the commit that changed this? What is the best prefered way to load the files in "lib"? Thanks for your answers. Nicolas. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed
2006 Jun 07
6
Links on the left hand side - are components necessary?
Hello, Maybe this is super-trivial... I need to have a list of links on the left hand side of my application, for *every* single page. So, I''ve created a layout called "main" (main.rhtml) under view/layouts, and included >layout "main"< in pretty all of my controllers. main.rhtml has, amongst all the other HTML stuff: <%= render_component
2013 May 08
1
server started as daemon: Application behaves differently from running in console
...r/gems/apn_on_rails-0.4.2/lib/apn_on_rails.rb:1:in `each'' vendor/gems/apn_on_rails-0.4.2/lib/apn_on_rails.rb:1 app/models/push_setting.rb:1 app/models/device.rb:168:in `deactivate'' app/controllers/api/v2/devices_controller.rb:195:in `destroy'' app/controllers/api/application_controller.rb:44:in `safe_run'' app/controllers/application_controller.rb:10:in `log_request'' /usr/local/lib/ruby/gems/1.8/gems/newrelic_rpm-3.5.0.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:270:in `perform_action'' /usr/local/lib/ruby/gems/1.8/gems/ne...