akshar jamgaonkar
2012-Apr-26 14:10 UTC
Multiple references of Country table in single client table
Hi I am new to ruby on rails , i am trying to develop a form client form having multiple refrences to country... i.e while adding a client i can add two contact persons each have a country associated with them. However with scaffolding iam unable to refer country twice....could anyone of you shed some light as to where iam going wrong or what could be the rite way.... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2012-Apr-27 09:11 UTC
Re: Multiple references of Country table in single client table
On 26 April 2012 15:10, akshar jamgaonkar <akshar.jamgaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi I am new to ruby on rails , i am trying to develop a form client > form having multiple refrences to country... i.e while adding a client > i can add two contact persons each have a country associated with > them. However with scaffolding iam unable to refer country > twice....could anyone of you shed some light as to where iam going > wrong or what could be the rite way....I suggest that first you work right through some good tutorials such as railstutorial.org (which is free to use online). Hopefully then you will have a better idea of the basics of Rails and will be able to achieve what you want. Colin> > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ar Chron
2012-Apr-27 19:30 UTC
Re: Multiple references of Country table in single client table
akshar jamgaonkar wrote in post #1058608:> Hi I am new to ruby on rails , i am trying to develop a form client > form having multiple refrences to country... i.e while adding a client > i can add two contact persons each have a country associated with > them. However with scaffolding iam unable to refer country > twice....could anyone of you shed some light as to where iam going > wrong or what could be the rite way....Sooo, sounds like the basic scaffold functionality won''t work. So you''ll have to take control and write some code of your own. My own two cents... scaffolding is good for education, and a look at how Rails is designed to work, but it''s just the basics. Never done Rails before? Scaffold up a model with some attributes, then go look at that generated code. Figure out how all the pieces and parts work together. Then start writing your own code. I use scaffolding for proof of concept all the time, but the scaffolded code doesn''t survive very long at all. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
akshar jamgaonkar
2012-Apr-27 19:34 UTC
Re: Re: Multiple references of Country table in single client table
Thanks a lot guys.....will definitely try what you have mentioned On Fri, Apr 27, 2012 at 12:30 PM, Ar Chron <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> akshar jamgaonkar wrote in post #1058608: > > Hi I am new to ruby on rails , i am trying to develop a form client > > form having multiple refrences to country... i.e while adding a client > > i can add two contact persons each have a country associated with > > them. However with scaffolding iam unable to refer country > > twice....could anyone of you shed some light as to where iam going > > wrong or what could be the rite way.... > > Sooo, sounds like the basic scaffold functionality won''t work. So > you''ll have to take control and write some code of your own. > > My own two cents... scaffolding is good for education, and a look at > how Rails is designed to work, but it''s just the basics. Never done > Rails before? Scaffold up a model with some attributes, then go look at > that generated code. Figure out how all the pieces and parts work > together. Then start writing your own code. > > I use scaffolding for proof of concept all the time, but the scaffolded > code doesn''t survive very long at all. > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks & Regards, Akshar Jamgaonkar -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.