I don''t get it. or how to fix it. Exception occurred during reader method compilation. Maybe 11 is not a valid Ruby identifier? compile error /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:211: syntax error, unexpected tINTEGER def 11; missing_attribute(''11'', call... ^ /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:211: syntax error, unexpected kEND, expecting $end ...(''11''); @attributes[''11'']; end ^ Exception occurred during reader method compilation. Maybe 11 is not a valid Ruby identifier? compile error /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:211: syntax error, unexpected tINTEGER def 11=(new_value);write_attribute(''11'', new_value);end ^ Exception occurred during reader method compilation. Maybe 11 is not a valid Ruby identifier? compile error /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:211: syntax error, unexpected tINTEGER def 11?; query_attribute(''11''); end ^ /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:211: syntax error, unexpected kEND, expecting $end def 11?; query_attribute(''11''); end ^ Exception occurred during reader method compilation. Maybe 12 is not a valid Ruby identifier? compile error /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:211: syntax error, unexpected tINTEGER def 12; missing_attribute(''12'', call... ^ /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:211: syntax error, unexpected kEND, expecting $end ...(''12''); @attributes[''12'']; end ^ Exception occurred during reader method compilation. Maybe 12 is not a valid Ruby identifier? compile error /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:211: syntax error, unexpected tINTEGER def 12=(new_value);write_attribute(''12'', new_value);end ^ -- Posted via http://www.ruby-forum.com/.
Frederick Cheung
2009-May-19 07:27 UTC
Re: Exception occurred during reader method compilation.?
On May 18, 10:14 pm, Morgan Morgan <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I don''t get it. > or how to fix it. > > Exception occurred during reader method compilation. > Maybe 11 is not a valid Ruby identifier?it isn''t. do you have columns of that name ? Fred> compile error > /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_ methods.rb:211: > syntax error, unexpected tINTEGER > def 11; missing_attribute(''11'', call... > ^ > /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_ methods.rb:211: > syntax error, unexpected kEND, expecting $end > ...(''11''); @attributes[''11'']; end > ^ > Exception occurred during reader method compilation. > Maybe 11 is not a valid Ruby identifier? > compile error > /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_ methods.rb:211: > syntax error, unexpected tINTEGER > def 11=(new_value);write_attribute(''11'', new_value);end > ^ > Exception occurred during reader method compilation. > Maybe 11 is not a valid Ruby identifier? > compile error > /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_ methods.rb:211: > syntax error, unexpected tINTEGER > def 11?; query_attribute(''11''); end > ^ > /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_ methods.rb:211: > syntax error, unexpected kEND, expecting $end > def 11?; query_attribute(''11''); end > ^ > Exception occurred during reader method compilation. > Maybe 12 is not a valid Ruby identifier? > compile error > /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_ methods.rb:211: > syntax error, unexpected tINTEGER > def 12; missing_attribute(''12'', call... > ^ > /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_ methods.rb:211: > syntax error, unexpected kEND, expecting $end > ...(''12''); @attributes[''12'']; end > ^ > Exception occurred during reader method compilation. > Maybe 12 is not a valid Ruby identifier? > compile error > /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_ methods.rb:211: > syntax error, unexpected tINTEGER > def 12=(new_value);write_attribute(''12'', new_value);end > ^ > -- > Posted viahttp://www.ruby-forum.com/.