Ruby on Rails Wednesday, February 11, 2015

What about your sermon model? I think this would be the more important one so that we could help you out.

Some stuff that could help:
- will a specific user only have access to one church? or more than one?
- what is the role of the speaker? is it just the user who posted the sermon or some sort of author of it? not necessarily being the user that submitted it?
- about speakers, series and topics, those are just for simply filtering the given sermons?



Diego Dillenburg Bueno
Graduando em Ciências da Computação
UNESP - Rio Claro
(12) 98116-7741


2015-02-11 15:19 GMT-02:00 Brian Scramlin <brian.scramlin@gmail.com>:
Greetings RoR Friends! I would SO APPRECIATE your help with a question. I have read the Rails Guides, Stack Overflow, and tutorials but still seem to fail at grasping some basic RoR Association Conventions.

I will share with you the gist of the project layout and a picture of my models and associations. Please let me know if this is correct. Especially if the "has_and_belongs_to_many is reduntant.

Overview: A web application where a church profile can be logged into by multiple users. These users will upload sermons which can be viewed from the church profile. The church profile categorizes the sermons based on either the speaker, a series, or a topic. That's it! 

Here is a picture of my models. Is this the correct way?


--
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/81ac4cb1-cffc-404e-aaa1-032b9e07e1f7%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/CAOHSkmG%3D9LdZjVA0M3nvSUnf7nBSE3eTuf-2susP0f763-k7XQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment