# Help Plzz (new to ruby)

**URL:** <https://www.ruby-forum.com/t/help-plzz-new-to-ruby/197010>\
**Category:** Rails\
**Created:** [October 26, 2009, 8:04am UTC](https://www.ruby-forum.com/t/help-plzz-new-to-ruby/197010 "2009-10-26T08:04:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![antony\_4u](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@antony\_4u](https://www.ruby-forum.com/u/antony_4u)\
**Post date:** [October 26, 2009, 8:04am UTC](https://www.ruby-forum.com/t/help-plzz-new-to-ruby/197010/1 "2009-10-26T08:04:48Z")

</div>

# 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

---

<div class="post-metadata">

**Author:** ![antony\_4u](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@antony\_4u](https://www.ruby-forum.com/u/antony_4u)\
**Post date:** [October 26, 2009, 8:12am UTC](https://www.ruby-forum.com/t/help-plzz-new-to-ruby/197010/2 "2009-10-26T08:12:08Z")

</div>

Antony N. 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”);  
> It is params[:id] …

If you are new in ruby then I recommended that first you have to learn  
basics from the tutorials…

> **[Ruby on Rails Tutorial](http://www.tutorialspoint.com/ruby-on-rails/)**
>
> Ruby on Rails Tutorial - Ruby on Rails is an extremely productive web application framework written in Ruby by David Heinemeier Hansson. This tutorial gives you a complete understanding on Ruby on Rails.

> **[Getting Started with Rails — Ruby on Rails Guides](https://guides.rubyonrails.org/getting_started.html)**
>
> Getting Started with RailsThis guide covers getting up and running with Ruby on Rails.After reading this guide, you will know: How to install Rails, create a new Rails application, and connect your application to a database. The general layout of a...

---

<div class="post-metadata">

**Author:** ![antony\_4u](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@antony\_4u](https://www.ruby-forum.com/u/antony_4u)\
**Post date:** [October 26, 2009, 8:17am UTC](https://www.ruby-forum.com/t/help-plzz-new-to-ruby/197010/3 "2009-10-26T08:17:44Z")

</div>

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 N. \<

---

<div class="post-metadata">

**Author:** ![antony\_4u](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@antony\_4u](https://www.ruby-forum.com/u/antony_4u)\
**Post date:** [October 26, 2009, 8:25am UTC](https://www.ruby-forum.com/t/help-plzz-new-to-ruby/197010/4 "2009-10-26T08:25:26Z")

</div>

Thank you Sakthivel I Will try this

---

<div class="post-metadata">

**Author:** ![antony\_4u](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@antony\_4u](https://www.ruby-forum.com/u/antony_4u)\
**Post date:** [October 26, 2009, 8:23am UTC](https://www.ruby-forum.com/t/help-plzz-new-to-ruby/197010/5 "2009-10-26T08:23:07Z")

</div>

# Thank you Brijesh S.

# I know the basics of ruby on rails. I studied from those links only.

# Can you send me any articles of using Params effectively…

Thanks In Advance,  
Antony
