Displaying 1 result from an estimated 1 matches for "chartscontroller".
Did you mean:
cartcontroller
2006 Mar 29
0
placing specific views within a subdirectory?
...controllers/hello.rb
views/hello/english/world.rhtml
views/hello/english/people.rhtml
views/hello/spanish/mundo.rhtml
views/hello/spanish/gente.rhtml
instead of the usual:
controllers/hello.rb
views/hello/world.rhtml
views/hello/mundo.rhtml
hello.rb currently contains the basic methods:
class ChartsController < ApplicationController
def world
render_text("hello world")
end
def mundo
render_text("hola mundo")
end
def people
render_text("hello people")
end
def gente
render_text("hola gente")
end
end
Ideally, It would contain sub methods or something...