geethan85-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-May-14 06:05 UTC
Hi pls help me abt Rails
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. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
geethan85-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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) -- 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 -~----------~----~----~----~------~----~------~--~---