active record association: has only one.

11 views
Skip to first unread message

Piliman Piliman

unread,
Jul 11, 2012, 9:47:55 AM7/11/12
to rubyonra...@googlegroups.com
Hello guys!
I'm new on RoR. I'm testing an application for married person using this
source
https://github.com/serv/Ruby-on-Rails-Tutorial-by-Michael-Hartl--v3.2-
The goal is:
- A sign-in person can only get only one follower ( his wife or husband)

Where should i modified this app for this features?
Thanks for your help!

--
Posted via http://www.ruby-forum.com/.

Rick

unread,
Jul 11, 2012, 10:27:28 AM7/11/12
to rubyonra...@googlegroups.com
Go to http://guides.rubyonrails.org/association_basics.html and you'll find what you need.

As a side note, you should bookmark http://guides.rubyonrails.org/ and get familiar with its' contents.

Rick
Reply all
Reply to author
Forward
0 new messages