# How to get the value of a text field

**URL:** <https://www.ruby-forum.com/t/how-to-get-the-value-of-a-text-field/84601>\
**Category:** Rails\
**Created:** [February 6, 2007, 10:09am UTC](https://www.ruby-forum.com/t/how-to-get-the-value-of-a-text-field/84601 "2007-02-06T10:09:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kushan\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d2c977/32.png) [@Kushan\_J](https://www.ruby-forum.com/u/Kushan_J)\
**Post date:** [February 6, 2007, 10:09am UTC](https://www.ruby-forum.com/t/how-to-get-the-value-of-a-text-field/84601/1 "2007-02-06T10:09:26Z")

</div>

Hi All

Can anyone tell me how to get the value from a text field in Ruby not  
from  
javascript  
(i can get the value from java script by calling “getElementById()”)  
Lets say text field is like this

\<%= text\_field ‘confirmed\_check\_in’, ‘baseLeaseFee’,‘size’=\>_10_ %\>

Please Help me

---

<div class="post-metadata">

**Author:** ![Kushan\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d2c977/32.png) [@Kushan\_J](https://www.ruby-forum.com/u/Kushan_J)\
**Post date:** [February 6, 2007, 10:23am UTC](https://www.ruby-forum.com/t/how-to-get-the-value-of-a-text-field/84601/2 "2007-02-06T10:23:28Z")

</div>

hi,

if I understood your question  
in controller you can have  
params[:confirmed\_check\_in][:baseLeaseFee]

~gaurav

---

<div class="post-metadata">

**Author:** ![Kushan\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d2c977/32.png) [@Kushan\_J](https://www.ruby-forum.com/u/Kushan_J)\
**Post date:** [February 6, 2007, 2:14pm UTC](https://www.ruby-forum.com/t/how-to-get-the-value-of-a-text-field/84601/3 "2007-02-06T14:14:18Z")

</div>

Hi Kushan,

Kushan J.:

> Can anyone tell me how to get the value from  
> a text field in Ruby not from javascript

For an understanding of the basics of Ruby on Rails, you might want to  
tackle a tutorial or two. Here’s a link to one Curt H. and I  
recently  
did.

> **[Radar - O’Reilly](https://www.oreilly.com/radar/?page=1)**
>
> Now, next, and beyond: Tracking need-to-know trends at the intersection of business and technology

Welcome to Rails!  
Bill
