In the "Rails Way" book, the following was written in the console: ENV[ ‘REQUEST_URI’ ] = “/demo/index” I searched for a place to describe what ENV[ ‘REQUEST_URI’ ] means but didn''t find. I know it is clear here. But, I want to know: Is ENV and ''REQUEST_URI''] predefined? In other words, do they act like methods I just reference to? Thanks. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sep 21, 11:08 am, Abder-Rahman Ali <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> In the "Rails Way" book, the following was written in the console: > > ENV[ ‘REQUEST_URI’ ] = “/demo/index” > > I searched for a place to describe what ENV[ ‘REQUEST_URI’ ] means but > didn''t find. > > I know it is clear here. But, I want to know: Is ENV and ''REQUEST_URI''] > predefined? In other words, do they act like methods I just reference > to?ENV is the hash of environment variables (it''s not quite a hash if my memory is correct). When using CGI web servers tell the application about the request by setting a bunch of environment variables. Fred> > Thanks. > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks @Fred. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.