Hai I have one question that Can i use class variable in Rails view? Tell me Bye <a href="http://www.freewebs.com/hussaimar/">Visit My Website</a>
on 2007-07-13 16:34
on 2007-07-13 18:07
Mohamed Hussain wrote: > Hai > I have one question > that Can i use class variable in Rails view? I don't understand your question -- What do you mean by "Rails view"? -- Travis Warlick "Programming in Java is like dealing with your mom -- it's kind, forgiving, and gently chastising. Programming in C++ is like dealing with a disgruntled girlfriend -- it's cold, unforgiving, and doesn't tell you what you've done wrong."
on 2007-07-13 22:18
On 7/13/07, Travis D Warlick Jr <email@example.com> wrote: > Mohamed Hussain wrote: > > Hai > > I have one question > > that Can i use class variable in Rails view? > > I don't understand your question -- What do you mean by "Rails view"? > > -- > Travis Warlick > Technically nothing prevents you from using a class variable in rails view and i guess your class variable should be available in view as well if you declare it with class FoobarController < ApplicationController cattr_accessor :bar_baz end