Hello people, rails noob here,
I am trying to create an extremely simple addition application by
having two text boxes allow users to put in any numbers, press a
button, and get them added together. This is my first attempted
application by myself, so I am probably making lots of simple
mistakes.
I have tried to call params[:number_one], and params[:number_two] in
my controller, but I get an error. A short bit of code showing what my
controller should look like would be great thanks!
Ok, so I figured out what was causing the error, I wasnt calling
params[:number_one] in the right place. Fixing this took care of the
error. Now I can call them in my controller like so:
Thank you guys so much for your help. I think I have everything
working now. It must be frustrating dealing with such simple issues.
Just one more question: Did you intend to put the " - " in <%=
form_tag('/') do -%> ? I removed it and it didn't seem to change
anything.