Ruby on Rails Monday, February 12, 2018

You can balance belongs_to with has_one or has_many. You have to pick one of those two options, otherwise it's not appropriate for a belongs_to.

Walter

> On Feb 12, 2018, at 9:33 PM, fugee ohu <fugee279@gmail.com> wrote:
>
> I'm trying to add a model abstraction in between two existing but the top is just the model, User in my case, in the main app that gets the line "blog" placed in it and then inside the gem posts belongs to blogger but there's no blogger model like I said I wanna let bloggers have_one blog_setting so they can put the title description, theme in database tables
>
> --
> 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/67ea4dd0-908c-490d-98e6-106918c19b3b%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/707460E0-B12A-4D2C-BBFA-DD130FC5D8FE%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment