It doesn't say any numbers, the relevant log info just says it
processed the GET and got the layout.

On Oct 26, 4:32 am, Frederick Cheung <frederick.che...@gmail.com>
wrote:
> On Oct 26, 3:18 am, debalmoto <debalm...@gmail.com> wrote:
>
> > 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:
>
> > @a = params[:number_one].to_i
> > @b = params[:number_one].to_i
> > @sum = @a + @b
>
> > But when I put numbers in my text boxes, it always shows 0. I even put
> > this is my view:
>
> > <p><%= params[:number_one].to_i + params[:number_two].to_i %></p>
>
> > And it also always shows 0. What am I doing wrong?
>
> I'd check the development.log file to see what parameters are actually
> getting submitted.
>
> Fred

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to