On 13 January 2016 at 14:20, Lei Zhang <ray.zhang.cn@gmail.com> wrote:
> My mistake not making it clear enough.
>
> Actually they have some attributes.
>
> Let's say,
>
> A has a simple attribute called A.name and C also has a attribute C.name.
>
> Then A has_many C, which means C.a_id exists.
>
> In my case, my requirement is that if users enter C2.name、 C3.name and
> C4.name, I should show them A1.name or whatever attributes A might have that
> needs to be displayed.
No, still not getting it. When you say user enters C2.name, C3.name
and C4.name do you mean he actually enters the string "C2.name,
C3.name and C4.name" or do you mean he enters actual names or what?
Please give an example of actual records and their fields and values
and exactly what the user might enter and what you want to show.
Colin
--
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%3D0gLt98RgrG-4xSUCH8-fa%2Bakn6RWx1gfaRag1H04U8wNrSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment