[Rails] Routes Id issue in 2.3.5

2010-10-08 Thread The_programmer
Hi, Routes.rb wants the id for doctors. I would love to give routes the answer it is looking for, but I am not sure how to define an id in rails. In c++ it would be something like int doctors(int id); int doctors(int id) { // code } If someone could be kind enough to tell me what to pass as id to r

[Rails] Re: Making a registration form that requires user to be over 13 (COPPA compliant form)

2010-04-09 Thread The_programmer
Wow, that is so much easier than the insane formula I was trying to remember when I programmed in the evil language of PHP. Thank you so much!! On Apr 6, 11:27 pm, Gianluca Tessarolo wrote: > Assuming that date contains the borning date: > > if date < Date.today - 13.years >   # Ok > else >   # N

[Rails] Making a registration form that requires user to be over 13 (COPPA compliant form)

2010-04-06 Thread The_programmer
Hi, In the U.S.A for anyone to have access to any site that allows you access to a chatroom, forum, anything that sends text over the internet you have to be over 13 unless everything everyone can say is from a pre-select menu. Well, I don't want to limit people's freedom of speech but I do want t

[Rails] Re: how to upload video file??

2010-04-06 Thread The_programmer
On Apr 5, 10:51 pm, shyam mohan wrote: > Try > thishttp://jimneath.org/2008/06/03/converting-videos-with-rails-convertin... > -Shyam > > On Tue, Apr 6, 2010 at 3:46 AM, Rutvij Pandya wrote: > > Dear all, > > > kindly help me to upload video files... > > > Thanking you. > > -- > > Posted vi

[Rails] Select_tag with options_for_select not populating DB.

2010-03-24 Thread The_programmer
I'm trying to get my animal app to let users populate info about each animal. The code below partially works. It shows the drop down menu, and it shows the names of what I wanted it to be the names of the Databases. I don't know how to make it work so it shows the name dog and than you hit submit a

[Rails] How do you allow users make custom shopping lists?

2010-02-26 Thread The_programmer
Hi, I asked Ryan bates, the owner of railscasts.com if he knew of any documentation that would explain what code to use to allow users make their own lists in RoR. He referred me to here. I'm trying to make it so user A can make a shopping list and populate it with items like eggs, fruit, oatmeal,