I have a RoR app that I''m trying to move into production. I''ve built it on my local server, and I''m moving it to an ISP that supports Ruby on Rails. I''m guessing there''s a problem with the version of RoR that they provide - but the experts here will definitely know. I''m using MySQL. A table has a column of type "text". Problem: on the ISP''s server, it''s as if that column doesn''t exist. It gets an error on any attempt to reference that column. (the error is wrong number of arguments (0 for 1).) I''m pretty sure that it''s the text definition as removing the column reference from the .rhtml eliminates the error - and the only two pages showing an error reference tables with a text column. This brings up two questions: (1) Is there a problem with some versions of RoR not being able to handle a text column? (2) Any suggestions on how to get around this would be greatly appreciated. -- 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 -~----------~----~----~----~------~----~------~--~---
What''s the name of the column? Rails has some reserved column names for polymorphisms, etc, that can cause some problems for you. Fredrik On May 3, 10:17 am, Michael Satterwhite <rails-mailing-l...@andreas- s.net> wrote:> I have a RoR app that I''m trying to move into production. I''ve built it > on my local server, and I''m moving it to an ISP that supports Ruby on > Rails. I''m guessing there''s a problem with the version of RoR that they > provide - but the experts here will definitely know. > > I''m using MySQL. A table has a column of type "text". Problem: on the > ISP''s server, it''s as if that column doesn''t exist. It gets an error on > any attempt to reference that column. (the error is wrong number of > arguments (0 for 1).) > > I''m pretty sure that it''s the text definition as removing the column > reference from the .rhtml eliminates the error - and the only two pages > showing an error reference tables with a text column. > > This brings up two questions: > (1) Is there a problem with some versions of RoR not being able to > handle a text column? > (2) Any suggestions on how to get around this would be greatly > appreciated. > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Fredrik wrote:> What''s the name of the column? Rails has some reserved column names > for polymorphisms, etc, that can cause some problems for you. > > FredrikIn both tables, the name of the column is "quote". Note, however, that the app runs fine on my local RoR server - it''s not running on the ISP''s. ---Michael -- 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 -~----------~----~----~----~------~----~------~--~---
Michael Satterwhite wrote:> Fredrik wrote: >> What''s the name of the column? Rails has some reserved column names >> for polymorphisms, etc, that can cause some problems for you. >> >> Fredrik > > In both tables, the name of the column is "quote". Note, however, that > the app runs fine on my local RoR server - it''s not running on the > ISP''s.Thanks Fredrik. I''d been looking in the wrong place. ActiveRecord has a ''quote'' method which conflicted with the column name. I changed the name of the column (and my source code, of course) and everything is working great. -- 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 -~----------~----~----~----~------~----~------~--~---