Joshua Muheim
2007-Oct-18 19:13 UTC
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 -- 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 -~----------~----~----~----~------~----~------~--~---
Philip Hallstrom
2007-Oct-18 21:32 UTC
Re: Make sure that model.attribute is only set on :create?
> 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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Joshua Muheim
2007-Oct-19 09:08 UTC
Re: Make sure that model.attribute is only set on :create?
Thank you :-) Philip Hallstrom 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-- 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 -~----------~----~----~----~------~----~------~--~---
gene tani
2007-Oct-19 11:26 UTC
Re: Make sure that model.attribute is only set on :create?
On Oct 19, 2:08 am, Joshua Muheim <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Thank you :-) > > Philip Hallstrom 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 > > -- > 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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---