Hello, I have been using Sphinx with Thinking_sphinx plugin which works well on local development environment, but once I move it to production (shared host) I get this error and I''m not sure why linkamed-sE8khXQTlBmcZ8xLbwwaNw@public.gmane.org [~/public_html/linko/current/config]# rake thinking_sphinx:index RAILS_ENV=production (in /home/linkamed/public_html/linko/releases/20080924112647) gcc: No such file or directory rake aborted! Expected /home/linkamed/public_html/linko/releases/20080924112647/app/models/poll.rb to define Poll any ideas? Thanks, Tam -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sep 24, 12:57 pm, Tam Kbe <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hello, > I have been using Sphinx with Thinking_sphinx plugin which works well on > local development environment, but once I move it to production (shared > host) I get this error and I''m not sure why >Expected /home/linkamed/public_html/linko/releases/20080924112647/app/ models/poll.rb to define Poll just means that something bad happened when loading poll. You''d get a better error message if you ran script/console and typed in Poll Fred> > linka...-sE8khXQTlBmcZ8xLbwwaNw@public.gmane.org [~/public_html/linko/current/config]# rake > thinking_sphinx:index RAILS_ENV=production > (in /home/linkamed/public_html/linko/releases/20080924112647) > gcc: No such file or directory > rake aborted! > Expected > /home/linkamed/public_html/linko/releases/20080924112647/app/models/poll.rb > to define Poll > > any ideas? > > Thanks, > > Tam > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On Sep 24, 12:57�pm, Tam Kbe <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> Hello, >> I have been using Sphinx with Thinking_sphinx plugin which works well on >> local development environment, but once I move it to production (shared >> host) I get this error and I''m not sure why >> > > Expected /home/linkamed/public_html/linko/releases/20080924112647/app/ > models/poll.rb to define Poll > just means that something bad happened when loading poll. You''d get a > better error message if you ran script/console and typed in > Poll > > FredThanks Fred, that was the right thing to do and I realized that the problem is from plugin (validate_date_time)!:>> PollNoMethodError: undefined method `validates_date'' for #<Class:0xb78a1da0> from /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:264:in `retrieve_connection'' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in `connection'' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1063:in `table_exists?'' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1153:in `inspect'' from /usr/lib/ruby/1.8/irb.rb:154:in `to_str'' from /usr/lib/ruby/1.8/irb.rb:154:in `to_s'' from /usr/lib/ruby/1.8/irb.rb:154:in `write'' from /usr/lib/ruby/1.8/irb.rb:154:in `print'' from /usr/lib/ruby/1.8/irb.rb:154:in `eval_input'' from /usr/lib/ruby/1.8/irb.rb:259:in `signal_status'' from /usr/lib/ruby/1.8/irb.rb:147:in `eval_input'' from /usr/lib/ruby/1.8/irb.rb:146:in `eval_input'' from /usr/lib/ruby/1.8/irb.rb:70:in `start'' from /usr/lib/ruby/1.8/irb.rb:69:in `catch'' from /usr/lib/ruby/1.8/irb.rb:69:in `start'' from /usr/bin/irb:13 not sure why production is giving this error though! I tried on local host and it worked! Any ideas? maybe I should post new thread for this issue -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---