Displaying 20 results from an estimated 9000 matches similar to: "- 2.3.2 uninitialized constant ApplicationController"
2009 Mar 13
2
storing and retrieving arrays in mysql using rails
Hi,
I have a multiple checkbox of values 1 to 7 for selecting weekdays.
What is the possibility of storing the selected weekdays array in
mysql
and what type of field should i create in the table for storing the
array.
Any suggestions???
Regards,
Vimal Das
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
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''m doing
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
2010 Feb 25
9
uninitialized constant UsersController::User
i just created an application to list the primary details of
userbut it is showing an error lik this
"uninitialized constant UsersController::User"
this is my controlller
class UsersController < ApplicationController
puts"hiiiiiiiii"
def index
puts"hiiiiiiiii"
@users = User.find(:all)
puts @users
respond_to do |format|
format.html # index.html.erb
2006 Feb 01
2
Uninitialized constant ApplicationController?
Hello list,
I''m trying to start my Rails server after doing a long complex switch
from Postgres to MySQL, and I''m getting the following error:
=> Booting WEBrick...
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in
`const_missing'': uninitialized constant ApplicationController
(NameError)
from
2008 Jan 28
0
gettext 1.10: uninitialized constant ApplicationController
When running rake updatepo with gettext 1.10, for several controllers it
gives
Ignored ''app/controllers/sample_controller.rb''. Solve dependencies first.
/Users/sava/code/sht/trunk/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:266:in
`load_missing_constant'': uninitialized constant ApplicationController
Rails is 1.2.5, frozen in
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
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 Jun 05
6
rails 2.3.2
Hi all,
I am using rails v.2.3.2 and if I put following line to my
ApplicationController:
include LoginSystem
and I moved my login_system.rb to lib folder:
module LoginSystem
protected
def is_logged_in?
@logged_in_user = User.find(session[:user]) if session[:user]
end
def logged_in_user
return @logged_in_user if is_logged_in?
end
def logged_in_user=(user)
if
2006 Jul 29
2
uninitialized constant ApplicationController
Hey,
I am getting a weird error that doesn''t give much helpful debug output
because the application controller can not be found. The actual error
output actually shows up in the webrick server, i''m trying right now
wether this could be because of my computer configuration but i don''t
think so because it was working yesterday and i must have changed
something that
2008 Feb 04
3
Hello World: uninitialized constant ApplicationController
Have the Wrox guide, but still having problems getting my hello world to
run (very frustrating! ;-) Installed latest InstantRails package for
Windows (XP). Thank you so much for helping!!
Dirk
After creating the project directories, I created my
\app\controllers\greeting_controller.rb file:
class GreetingController < ApplicationController
def greeting
end
end
Then put in my
2009 Mar 22
1
Upgrading 2.2 to 2.3: console broken, "uninitialized constant Module::ActiveSupport"
Upgrading a Rails app from 2.2 to 2.3.2 (via 2.3.0). Got things
working in the browser, but script/console seems messed up in both
2.3.0 and 2.3.2:
$ script/console
Loading development environment (Rails 2.3.2)
/Library/Ruby/Gems/1.8/gems/rails-2.3.2/lib/initializer.rb:56:in
`env'':NameError: uninitialized constant Module::ActiveSupport
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
2010 Jun 21
1
in `const_missing': uninitialized constant CGI::Session
Hi,
I have an application which previously running on rails 2.2.2. I just
upgraded the rails to 2.3.8. After that I tried to start the server I
got the following error:-
"/usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:105:in
`const_missing'': uninitialized constant CGI::Session (NameError"
Anyone have any idea How to solve this
2009 Mar 05
2
Retrieving all values of the column from the table
Hi,
I have a function in my model like
-----------------------------------------
class Pattern
def self.get_all(field)
@patterns = Pattern.find(:all)
@patterns.collect do |pp|
pp.field
end
end
end
-----------------------------------------
so that whatever field i give to the function,
it returns all the column values in an Array
I dont know whether i am doing it right or
2008 Apr 30
7
rescue_from issue with AWS - uninitialized constant
The new rescue_from in edge rails seems to conflict with
ActionWebService, which I need for various other purposes. When I
define, for example (with AWS gem installed):
<b>rescue_from ActionController::RoutingError, :with
=> :page_not_found</b>
I get the exception:
<b>uninitialized constant
ActionWebService::Dispatcher::ActionController::Base</b>
OK, so AWS
2007 Jun 26
1
ActionController::RoutingError (no route found to match "/ja
Hi All,
I have an application running on mongrel. i am getting the access of
application .but it seems that its not picking up
stylesheets,javascript.
My production.log contains the error:
ActionController::RoutingError (no route found to match
"/javascripts/application.js" with {:method=>:get}):
i have all .ccs and .js file under public directory of application.
Thanks in Advance for
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
---
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
2009 Aug 10
2
A copy of ApplicationController has been removed from the module tree but is still active!
Yes, more dependencies.rb fun!
As far as I''m able to ascertain, these errors started appearing after
upgrading from Rails 2.3.1 to 2.3.2 and persist in 2.3.3.
They''re highly nonderministic and appear rather sporadically, which
makes it extremely frustrating. Multiple developers on our team have
experienced this problem across varying versions of Ruby/Rails.
They''re