Friday, July 19, 2013

Re: [Rails] Re: Rails 4 "belongs_to: record" association doesn't work

On 19 July 2013 15:24, David <piegza@workhub.com> wrote:
> It would be weird if there are some reserved words for association names...
> and they are not documented.

It may well be reserved in other situations also. No reserved words
are documented as far as I know.

Colin

>
>
> On Friday, July 19, 2013 4:15:14 PM UTC+2, Ruby-Forum.com User wrote:
>>
>> Colin Law wrote in post #1116001:
>> > On 19 July 2013 14:59, David <pie...@workhub.com> wrote:
>> >> Yes exactly. It's specific to the word 'record'. It works when I change
>> >> it
>> >> to :foo or :b (or anything else).
>> >>
>> >> Are there any reserved words for association names?
>> >
>> > It would appear that the answer to that question is yes.
>>
>> Although that might have been unintentional. I don't know of any
>> "official" reserved word list for association names.
>>
>> --
>> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/0f83d777-343d-47b3-9dab-1bac391518b1%40googlegroups.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
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@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLubtgQDX%2BuWMhksc3OMLsfomYw4YTaA80Prmgp%3DHLHbUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate