Monday, October 25, 2010

[Rails] Re: Create super-simple adding application

Anytime I put params[:number_one] or two in my controller I get this
error on my page:

undefined local variable or method `params' for
ApplicationController:Class

On Oct 25, 5:03 am, Frederick Cheung <frederick.che...@gmail.com>
wrote:
> On Oct 25, 1:14 am, debalmoto <debalm...@gmail.com> wrote:
>
> > So far I have this in the view:
>
> > <%= text_field_tag :number_one %>
> > <%= text_field_tag :number_two %>
>
> > I have tried to call params[:number_one], and params[:number_two] in
> > my controller, but I get an error.
>
> What error?
>
> 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-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate