Ruby on Rails Wednesday, March 30, 2011

On 30 March 2011 12:04, Alexey Muranov <lists@ruby-forum.com> wrote:
> Frederick Cheung wrote in post #989934:
>> Why are you changing the id of an existing record?
>
> Just to learn how it behaves.
> I also plan an application where i want to use the primary key as a
> foreign key for a has_one association, so there it could (possibly) make
> sense to change it.

I told you life would be much easier for you if you stuck to the Rails
conventions :)

Colin

>
> If assigning anything to the primary key breaks ActiveRecord, is there a
> way to disable the id=() method after a record has been created?
>
> Alexey.
>
> --
> 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@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment