Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Ruby
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ruby section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 14th, 2007, 01:26 AM
Registered User
 
Join Date: May 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
 
Old May 14th, 2007, 06:00 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Couple of things.

1. You're probably better off posting in the ruby forum (under open source/ruby) about this kind of thing.
2. Where is params[:user_data] coming from? I'm assuming that it's set in a login form somewhere - in which case you'd need to submit the form before it'll show up.



--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk
 
Old May 14th, 2007, 08:07 AM
jminatel's Avatar
Wrox Staff
Points: 18,059, Level: 58
Points: 18,059, Level: 58 Points: 18,059, Level: 58 Points: 18,059, Level: 58
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Posts: 1,906
Thanks: 62
Thanked 139 Times in 101 Posts
Default

Moved to Ruby forum. :)

Jim Minatel
Senior Acquisitions Editor
Wiley Technology Publishing
WROX Press
Blog: http://wroxblog.typepad.com/
Jim's Book of the week: No book this week - Donate to the Red Cross!
 
Old May 16th, 2007, 09:30 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

wow! magic....

--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter one doesn't work in rails 2.0.2 wanguan2000 BOOK: Beginning Ruby on Rails 15 May 16th, 2009 11:39 PM
Need Help with Ruby on Rails - Please Help sfazel Other Programming Languages 1 April 8th, 2008 05:03 AM
Beginning Ruby on Rails - chapter 11: Ajax & Rails rornet BOOK: Beginning Ruby on Rails 1 June 22nd, 2007 04:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.