Hi John

Can you share the contents of app/models/Forms/Fields/number_field.rb? Also, is 
there a special reason why you're using uppercase in the folder names? Not sure 
how Rails handles that with its autoloading.

-- 
Pat

On 26/10/2012, at 5:34 PM, John Barker wrote:

> My application continuously crashes since adding thinking sphinx. My logs are 
> full of failure to load various models and constant errors. A snippet of my 
> logs as well as one of the models it is failing to load is included below:
> 
> 2012-10-26T06:28:03+00:00 app[web.1]: Warning: Error loading 
> /app/app/models/Forms/Fields/number_field.rb:
> 2012-10-26T06:28:03+00:00 app[web.1]: uninitialized constant Forms
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:229:in
>  `block in constantize'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:228:in
>  `each'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:228:in
>  `constantize'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/core_ext/string/inflections.rb:54:in
>  `constantize'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/context.rb:64:in
>  `block (2 levels) in load_models'
> 2012-10-26T06:28:03+00:00 app[web.1]: /app/vendor/bundle/r
> uby/1.9.1/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/context.rb:54:in 
> `each'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/context.rb:54:in
>  `block in load_models'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/context.rb:53:in
>  `each'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/context.rb:53:in
>  `load_models'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/context.rb:15:in
>  `prepare'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx.rb:81:in
>  `block in context'
> 2012-10-26T06:28:03+00:00 app[web.1]: <internal:prelude>:10:in `synchronize'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx.rb:78:in
>  `context'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/active_record.rb:162:in
>  `define_index'
> 2012-10-26T06:28:03+00:00 app[web.1]: /app/app/models/member.rb:23:in 
> `<class:Member>'
> 2012-10-26T06:28:03+00:00 app[web.1]: /app/app/models/member.rb:1:in `<top 
> (required)>'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:229:in
>  `block in constantize'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:228:in
>  `each'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:228:in
>  `constantize'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:259:in
>  `safe_constantize'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/core_ext/string/inflections.rb:66:in
>  `safe_constantize'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/params_wrapper.rb:152:in
>  `_default_wrap_model'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/params_wrapper.rb:169:in
>  `_set_wrapper_defaults'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/params_wrapper.rb:133:in
>  `inherited'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/railties/routes_helpers.rb:7:in
>  `block (2 levels) in with'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/railties/paths.rb:7:in
>  `block (2 levels) in with'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/app/controllers/members_controller.rb:1:in `<top (required)>'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:439:in 
> `block (2 levels) in eager_load!'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:438:in 
> `each'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:438:in 
> `block in eager_load!'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:436:in 
> `each'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:436:in 
> `eager_load!'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/application/finisher.rb:53:in
>  `block in <module:Finisher>'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:30:in
>  `instance_exec'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:30:in
>  `run'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:55:in
>  `block in run_initializers'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:54:in
>  `each'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:54:in
>  `run_initializers'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/application.rb:136:in
>  `initialize!'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in
>  `method_missing'
> 2012-10-26T06:28:03+00:00 app[web.1]: /app/config/environment.rb:5:in `<top 
> (required)>'
> 2012-10-26T06:28:03+00:00 app[web.1]: config.ru:3:in `require'
> 2012-10-26T06:28:03+00:00 app[web.1]: config.ru:3:in `block in <main>'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in 
> `instance_eval'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in 
> `initialize'
> 2012-10-26T06:28:03+00:00 app[web.1]: config.ru:1:in `new'
> 2012-10-26T06:28:03+00:00 app[web.1]: config.ru:1:in `<main>'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/rack/adapter/loader.rb:33:in
>  `eval'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/rack/adapter/loader.rb:33:in
>  `load'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/thin/controllers/controller.rb:181:in
>  `load_rackup_config'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/thin/controllers/controller.rb:71:in
>  `start'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/thin/runner.rb:187:in 
> `run_command'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/lib/thin/runner.rb:152:in `run!'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.0/bin/thin:6:in `<top (required)>'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `load'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `<main>'
> 2012-10-26T06:28:03+00:00 app[web.1]: 
> 
> group_activity.rb
> 
> class GroupActivity < ActivityLog
>   
> end
> 
> class ActivityLog < ActiveRecord::Base
>   attr_accessible :action, :action_description, :has_been_reverted, 
> :is_revert, :model, :organization_id, :record_id, :type, :user_id, :user_type
> end
> 
> Any help is greatly appreciated. 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/thinking-sphinx/-/pQ5ABIewIjAJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/thinking-sphinx?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to