On Wed, Mar 25, 2009 at 3:57 PM, wbsurf...@yahoo.com
<wbsurf...@gmail.com> wrote:
>  I am curious how stuff like params and flash work in the controller ?
> Typically an instance variable is something like
> @params, or maybe self.params. How does rails make params appear as if
> it's an instance variable ?


> irb
>> o = Object.new
=> #<Object:0xb7a3e000>
>> o.instance_variable_set( :@foo, 'bar' )
=> "bar"
>> o.inspect
=> "#<Object:0xb7a3e000 @foo="bar">"
>>

http://www.ruby-doc.org/core/classes/Object.html#M000381


-- 
Greg Donald
http://destiney.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@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