Can you please explain this? I do not see anything about attr_accessor in the activerecord api.

Thanks

Op 16/04/2010 07:14, K.Arunmohan het geskryf:
I hope attr_accessor can work for this purpose. It wont be inserted in db.

On Fri, Apr 16, 2010 at 10:13 AM, john <[email protected]
<mailto:[email protected]>> wrote:

    I do not know why my previous post was deleted. I am trying again.

    In Firebird database one can declare computed columns. These columns
    are readonly in the database. How do I stop activerecord to include
    these columns in insert statements when creating a record?

    I know about attr_readonly which works fine when updating.

    --
    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
    [email protected]
    <mailto:[email protected]>.
    To unsubscribe from this group, send email to
    [email protected]
    <mailto:rubyonrails-talk%[email protected]>.
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.


--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

--
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to