Hello! I have just started ruby on rails and i think it’s really funny.
At the moment i am building a project just for fun, where i can post
links to different websites, in different categories.
For example i can add a little link and description for “Ruby-forum” and
place it under the category “Programming”. So far so good!
But now i want to add a feature where other people (Well… Me :D) can
suggest a webpage. Then they should fill out a simple form and click
“Send”, and the suggestion will be puted in a table.
So, at the moment i have two tables in my database, “reviews” and
“categories”. Everything works fine, i can post/edit/delete/show/show
categories etc. But how am i going to do if i want to add another
function that uses another table than those two?
For example a form that puts information in a table called
“suggestions”. I would really like some tips on this! I guess i have to
migrate the table with the others, create the model and put the function
in the controller? But i am not sure how to start…
Regards
Alexander LJ