similar to: ArgumentError in HomeController#index

Displaying 20 results from an estimated 2000 matches similar to: "ArgumentError in HomeController#index"

2011 Jun 05
1
Cancan redirect back at AccessDenied
Hello I have a rails 3 app and I am trying to implement the redirect back action at access denied for cancan. If I try this in my application_controller: rescue_from CanCan::AccessDenied do |exception| redirect_to :back end It gives the following error: No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully. If this is a test, make sure
2012 May 23
8
Engine's Application Controller
Hi, I''ve been using rails 3 engines and (at least in my experience) the engine''s application controller is overidden by the app''s application controller. Wouldn''t it be better if the app would just load on top of the engine? I mean that if an engine''s application controller has methods or anything else that does not collide with the stuff defined
2008 Jul 09
11
script/generate scaffold user
NameError in UsersController#index uninitialized constant UsersController::User RAILS_ROOT: C:/RailsApps/rgams Application Trace | Framework Trace | Full Trace c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:492:in `const_missing'' app/controllers/users_controller.rb:5:in `index''
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
2009 Nov 21
3
Using mongrel_rails: Can't install Redmine as win2003 service
Hello everyone. After stugging 3+ hours installing redmine I got success but still can''t install redmine as service (windows 2003). So here is my problem. I successfully installed redmine and mapped it to mysql, created database and initialized it with default values. Last thing I''m trying to do is to install it as service on windows 2003, and for this I''m running in
2009 Dec 25
18
rescue_from ActionController::RoutingError II
OK ... so I''m not supposed to use it but ... Why doesn''t rescue_from ActionController::RoutingError work witht he code from http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html class ApplicationController < ActionController::Base helper :all # include all helpers, all the time # See ActionController::RequestForgeryProtection for details
2011 Oct 20
2
Agile book apache2.conf: Forbidden You don't have permission to access / on this server.
Appreciate any help - I am working through Agile web development (4.0) and am stuck on the deployment using phusion passenger. I get this: "Forbidden You don''t have permission to access / on this server." when I put depot.yourhost.com in the browser. I have been through various web searches and for file permissions and suggestions to change the <Files> container.
2010 Feb 22
4
"the change you want was rejected. Maybe you changed something you didn't have access to.""
Anyone ever get an error message such as this? "the change you want was rejected. Maybe you changed something you didn''t have access to."" I haven''t been able to see this in testing, but I''m getting reports out on the field from a few users trying to register to one of my websites. -S -- You received this message because you are subscribed to the
2011 Jun 09
8
Fail to call
Hi, I''m trying create a user system for a future project but I have a problem when I want give to my users the "Welcome". This is my code: #application_controller class ApplicationController < ActionController::Base protect_from_forgery helper_method :current_user private def current_user_session return @current_user_session if defined?(@current_user_session)
2007 Jul 24
2
Nested params and redirect_to
I have a simple client search screen that posts the following params: Parameters: {"search"=>"Search", "action"=>"list", "client_search"=>{"first_name"=>"jane", last_name"=>"smith"}, "controller"=>"client"} This works fine. However I want to redirect to the same
2008 Mar 28
10
Inheriting from AdminController intstead from ApplicationController
Hi I would like to do the following: I have created an admin namespace and the required folders app/admin views/admin etc. And then I wanted all controllers under app/admin to inherit from a controller named AdminController which resists under app/admin/admin.rb instead of inhereting from ApplicationController, so I could better separate between admin and public section. The AdminController
2009 Sep 10
1
undefined method `protect_against_forgery?'
When I use plugin ''railstree'' (http://www.hashcode.eti.br/?p=91) as following code: node = Node.new :label => menu_item.name, :link_to_remote => { :base => self, :update => "container", :url => {
2012 Apr 05
5
rspec: identical tests fails when repeated
I''m doing RSpec controller testing with CanCan authorization, and I''m seeing something I''ve never seen in RSpec before: the same test run twice fails on the second one. I am NOT doing before(:all) or other things that should cause state to persist between tests: Here''s the relevant code: context "POST create" do context "with user logged
2009 Jun 25
8
Mongrel service keeps re-starting ruby
On Thu, Jun 25, 2009 at 2:07 AM, Michael Pliskin<mike at comapping.com> wrote: > Hi all, > > > > Some disclaimer first: I am a complete newbie in mongrel and this list, so > please forgive me if I say something weird. I have a problem, I?ve googled > for a solution for quite a while and failed so far, so decided to ask here. > > > > I am trying to set up my
2011 Jun 11
7
"Stack level too" deep with @controller.hi
Hi again, sorry for many questions. In mi HomeController, I have the "hi" method, in this method I use an "if" for show a different message for a registered user or a guest. When I call in "home/index" my method "hi", show me this error message: "Stack level too deep" class HomeController < ApplicationController def hi if (current_user)
2011 Feb 11
11
CSRF protection in rails 2.3.11
Hi all, I think CSFR protection broke in rails 2.3.11. As in: it''s turned off now. I tried this in rails 2.3.10 and in 2.3.11 and 2.3.11 seems broken. >rails csrftest >cd csrftest >script/generate scaffold post title:string >rake db:migrate now I visit /posts/new in my browser, use firebug to delete or change the authenticity token, and submit the form. rails 2.3.11: all
2006 Mar 13
2
Excessive Errno::EBADF with dispatch.fcgi
I''m running Ruby on Rails via FastCGI in an Apache environment, and I get the following error, a lot. (from log/fastcgi.crash.log) [13/Mar/2006:15:52:51 :: 94704] Dispatcher failed to catch: Bad file descriptor (Errno::EBADF) /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:38:in `close'' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:38:in `each''
2008 Mar 15
3
[HELP]No :secret given to the #protect_from_forgery call
I am starting to BDD. When specing the controller I want to test for object creation: it "deberia crear una nueva persona en post create" do Usuario.should_receive(:create).with({:nombre => "camilo", :clave => "secreta", :tipo => "administrador"}).and_return(@usuario) post ''create'', {:usuario => {:nombre =>
2012 Dec 04
2
403 Forbidden from nginx when unicorn started in debug mode
I am using nginx with unicorn as a reverse proxy. Has been fantastic, but needed to look through some code for first time. Using ruby 1.9.3p194 with rails 3.2.9, development mode with ssl enabled, I start unicorn with -d ...and it does not get served up by nginx. Any ideas, or more information needed? Thanks! Jet Below is my unicorn.rb for developent: # config/unicorn.rb env =
2009 Aug 06
13
Redirect after login
Hi, I''m new to Ruby/RoR so please bare with me! I''m trying to adapt a ruby setup where someone logs in to a bonjour service via a web browser. I have the login screen which asks for host and password. There is only one user per host and i can log in fine. It''s suppose to redirect me to /list in my browser but doesn''t. Once i''ve entered the correct