Make sure that model.attribute is only set on :create?

Hi all

My model Link has an attribute creator_id which contains a foreign key
to my Member model table.
I want to make sure that the creator_id is only “changeable” during the
creation, and after it can’t be changed anymore.

How can this be accomplished in the easiest way?

Thanks for help
Josh

My model Link has an attribute creator_id which contains a foreign key
to my Member model table.
I want to make sure that the creator_id is only “changeable” during the
creation, and after it can’t be changed anymore.

How can this be accomplished in the easiest way?

http://agilewebdevelopment.com/plugins/search?search=locked

Thank you :slight_smile:

Philip H. wrote:

My model Link has an attribute creator_id which contains a foreign key
to my Member model table.
I want to make sure that the creator_id is only “changeable” during the
creation, and after it can’t be changed anymore.

How can this be accomplished in the easiest way?

http://agilewebdevelopment.com/plugins/search?search=locked

On Oct 19, 2:08 am, Joshua M. [email protected]
wrote:

http://agilewebdevelopment.com/plugins/search?search=locked


Posted viahttp://www.ruby-forum.com/.

nobody’s asked inh 3 days:

http://groups.google.com/group/rubyonrails-talk/browse_frm/thread/411510544859a6b8/5427048061782e36#5427048061782e36

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs