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-l...@andreas-s.net> 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@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 -~----------~----~----~----~------~----~------~--~---