Leonel *.* wrote in post #955223: > I tried to simplify to find the root of the problem, but this doesn't > work either! > > APPLICATION CONTROLLER > @company_id = 1;
This is a class instance variable, because self is the class itself here. > > VIEW > <%= @company_id %> returns nothing This is an instance variable. Nearly the same problem. Please read my immediate previous post. The study material I recommended in that one will solve this problem too. You need to gain a better understanding of what belongs to the class and what belongs to the instance. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

