Ruby on Rails Tuesday, March 14, 2017

On 14 March 2017 at 21:09, fugee ohu <fugee279@gmail.com> wrote:
>
>
> On Tuesday, March 14, 2017 at 3:56:22 PM UTC-4, Colin Law wrote:
>>
>> On 14 March 2017 at 12:32, fugee ohu <fuge...@gmail.com> wrote:
>> > For an SN site should there be a Profile model A user's gotta have a
>> > profile
>> > I guess right? Then who should pictures belong to, the user or the
>> > user's
>> > profile?
>>
>> Can you give us a clue as to which meaning of SN you are using?
>> https://en.wikipedia.org/wiki/SN does not seem to offer anything that
>> looks particularly likely.
>>
>> Colin
>
> Social Networking

What is in the users table and what is in the profiles table? You
might want to combine them into one table. Why make things complicated
unless there is a good reason?

If you do have separate tables then the question as to whether the
pictures belong to the profile or the user is just a matter of how you
wish to organise it. Think about the problem in real world terms.
Would the actual user think of the pictures as being his, or would he
think that they are the property of his profile?

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/0a8c94f8-0b8d-47f5-9380-6193445137b1%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

--
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%3D0gLuchrmU0koDQcHeOsqqcfx2D6rTiivOfY3_hUW7SixN-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment