Hi Antony,
For Example:
erb.file.U have 3 three fields.
username,useremail then useraddress in the user tables.
Table Name:users
In controller
def create
@user =User.new(params[:user])
@user.save
redirect_to :action =>''list''
end
Otherwise u can try this one:
def create
@user =User.new()
@user.name = params[:user][:username]
@user.save
redirect_to :action =>''list''
end
Thanks
seenu
On Mon, Oct 26, 2009 at 12:34 PM, Antony Nambikkai <
rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:
>
> # In a *.erb file I have a Form with controller action
> # In that I have 3 textbox and a submit button
> # while clicking submit button I want to get the value of all 3 textbox
> in controller
> # I mean In java we ll get the value like
>
> request.getparameter("ID");
>
> # Likewise how to use the request operation in Ruby controller
>
> # Kindly help me I am new to ruby on rails.
> # sorry for bad English
>
> # Thanks in Advance :-)
> --- Antony
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---