I have a controller for registering an user.
i am not able to use the instance variable @username in "Process". How
do i use them ? and also is it safe to declare usernames and passwords
as global variables.

I am pretty new to ruby on rails. any help would be great.


class RegisterController < ApplicationController

 def register
 @username = "User"
 @password =  "XXXX"

 end

 def process
 # puts "#...@username}"    - Doesnt work

 end

end

-Ashwin

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to