Anand Sankaran
2006-Oct-11 22:38 UTC
Pluralization of tables lost in a hosting environment.
I am trying to deploy my Ruby on Rails application into textdrive. I get MySql errors like these. Mysql::Error: Table ''session'' doesn''t exist: SHOW FIELDS FROM session The problem is the table is called "sessions" and not "session". I see exactly the same problem with all the tables, somehow the table pluralization is lost. I tried to set the tables to be plural in my environment.rb file like this: #pluralize tables ActiveRecord::Base.pluralize_table_names = true and restarted both rails and lighttpd, but it doesn''t help. Any guidance of how to fix this? anand --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
chris hulbert
2006-Oct-12 01:17 UTC
Re: Pluralization of tables lost in a hosting environment.
If you''re with textdrive, ask them! Their support is apparently awesome. As a quick fix, you could use: set_table_name ''sessions'' in your session.rb file. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Anand Sankaran
2006-Oct-17 06:02 UTC
Re: Pluralization of tables lost in a hosting environment.
Thanks Chris. Textdrive help wasn''t of much help :(. I eventually got this to work by hard coding all the table names. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
chris hulbert
2006-Oct-17 07:30 UTC
Re: Pluralization of tables lost in a hosting environment.
Thats a real shame. I''ve only heard good about them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Anand Sankaran
2006-Oct-17 17:53 UTC
Re: Pluralization of tables lost in a hosting environment.
Yeah, they have been very helpful so far, but this thing stumped them. Not sure what is happening. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---