I am new to Ruby and I have a question. I am trying to have a controller call a model class which would query a MySQL database.
What is the correct way to set this up? I am trying not to use scaffolding so that I learn how to do this by hand.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
when calling index, you will find post in database which id is equal to id given in paramaterer (http://localhost/my_controllers/id)