search for: dangerousattributeerror

Displaying 4 results from an estimated 4 matches for "dangerousattributeerror".

2008 Jan 26
2
empty Model creates DangerousAttributeError and connection is defined by ActiveRecord
Dear list, The following situation drives me crazy. I have one model called AlumniMember and one AlumniData. Both filled with code. I developed both on Rails 1.2.3. Now I update the App to Rails 2.0.2. Now the following happens, always when I call AlumniData.new I get the DangerousAttributeError. First I cleaned out the Model, the only line I left is "has_one :alumni_member". Same error. The I cleaned that line too: guess... same error. F%&/ it, I thought and got rid of the model with "script/destroy model AlumniData". The I recreated the model . . . same error. R...
2011 Aug 01
0
ActiveRecord:: DangerousAttributeError only in console
...to BD, so I can''t change the name of columns. The column in question is called "reference" and I''m having a very strange behavior during implementation: 1) initializing / creating the object (which maps to the table) on the console I get the message "ActiveRecord:: DangerousAttributeError: reference? is defined by ActiveRecord ". I''ve tried a few approaches (default_scope, override the instance_method_already_implemented?) But all without success 2) running the code through the browser, i don''t get this error, I can persist the object on the database. When i...
2008 Feb 22
2
ActiveRecord::DangerousAttributeError ???
...@wide = true end is causing this hideous error. I have read the error means that the error is raised when attribute has a name reserved by ActiveRecord. Does that mean that none of my models can have columns named "toggle"? Here is the error and framework trace: ActiveRecord::DangerousAttributeError in ApplicationController#index toggle is defined by ActiveRecord RAILS_ROOT: /usr/local/apache2/htdocs/dps2 Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ attribute_methods.rb:88:in `instance_method_already_implemented?'...
2013 Aug 30
3
frozen? is defined by ActiveRecord
Hello folks I got that error Pls tell me what''s wrong frozen? is defined by ActiveRecord -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this