# Hi pls help me abt Rails

**URL:** <https://www.ruby-forum.com/t/hi-pls-help-me-abt-rails/104086>\
**Category:** Rails\
**Created:** [May 14, 2007, 8:06am UTC](https://www.ruby-forum.com/t/hi-pls-help-me-abt-rails/104086 "2007-05-14T08:06:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 14, 2007, 8:06am UTC](https://www.ruby-forum.com/t/hi-pls-help-me-abt-rails/104086/1 "2007-05-14T08:06:07Z")

</div>

hi all,

I need to pass the text box values of one file which has .rb as its  
extension to textbox of another .rb file.

ie. i have a file named account\_controller which maintainsfor login  
records ,when a user enter their login id …this value to be  
saved…and i have a schedule\_controller where the schedule of that  
particular user is maintained…in order rather entering name again in  
the schedule form when the user enter their respective name in the  
login text field itself it automatically stored up in a session and in  
the schedule forms textfield it is displayed in a disabled manner  
where it prevents editing of user name…

@data = params[:user\_login]  
flash[:notice] =“Welcome Admin : #{@data}”  
i used these set of codes but its not displaying even in the  
form…pls tell me solution for this…

Thanks &Regards,  
Geetha.N.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 14, 2007, 8:13am UTC](https://www.ruby-forum.com/t/hi-pls-help-me-abt-rails/104086/2 "2007-05-14T08:13:25Z")

</div>

removed\_email\_address@domain.invalid wrote:

> hi all,
> 
> I need to pass the text box values of one file which has .rb as its  
> extension to textbox of another .rb file.
> 
> ie. i have a file named account\_controller which maintainsfor login  
> records ,when a user enter their login id …this value to be  
> saved…and i have a schedule\_controller where the schedule of that  
> particular user is maintained…in order rather entering name again in  
> the schedule form when the user enter their respective name in the  
> login text field itself it automatically stored up in a session and in  
> the schedule forms textfield it is displayed in a disabled manner  
> where it prevents editing of user name…
> 
> @data = params[:user\_login]  
> flash[:notice] =“Welcome Admin : #{@data}”  
> i used these set of codes but its not displaying even in the  
> form…pls tell me solution for this…
> 
> Thanks &Regards,  
> Geetha.N.

From your description, looks like you have a login form and when the  
user enters the name in the text field, it has to be captured and shown  
in an other form naming scheduler form.

For this,  
to hold it in the session use session[:sess\_user\_login] =  
params[:user\_login].

After this u can use this session variable some thing like this

\<textfield … value = session[:sess\_user\_login]\> for the whole  
session.  
(check for the proper syntax)
