I understand the idea of having apache serving static content but
anyways what do you think about this as i am with similar question in
mind.
#controller
class HomeController ApplicationController
def index
page = params['page']
if page
begin
render page_views/ + page
I understand the idea of having apache serving static content but
anyways what do you think about this as i am with similar question in
mind.
#controller
class HomeController ApplicationController
def index
page = params['page']
if page
begin
# page var is the same as
nirosh wrote:
write the function @ application_controller that can be access in any
controller.
for more info read abt application controller doc.
nirosh
Hey thanks for the response.
What about the image paths. This is in css and it's not linking to the
images folder:
background: #b8e5d1
On Sun, May 23, 2010 at 5:07 AM, John Merlino li...@ruby-forum.com wrote:
nirosh wrote:
write the function @ application_controller that can be access in any
controller.
for more info read abt application controller doc.
Or create a utility controller, call it home or whatever, that handles
John Merlino wrote:
Hey all,
Does any have suggestions to whether I should create a controller for
every web page on my site or just create an action for every web page in
same controller if those actions will never require database calls?
Do neither. Use a single controller action for your
On Sun, May 23, 2010 at 9:12 AM, Marnen Laibow-Koser
li...@ruby-forum.comwrote:
John Merlino wrote:
Hey all,
Does any have suggestions to whether I should create a controller for
every web page on my site or just create an action for every web page in
same controller if those actions
write the function @ application_controller that can be access in any
controller.
for more info read abt application controller doc.
nirosh
--
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
7 matches
Mail list logo