problems with view_paths

Hello i'm trying do add view paths to my project

In my local machine it is working fine but when i'm trying to host my
project it is not working i don't understand why?

I'm using rails 2.0.2

This is my controller

class FrontEndController < ApplicationController

  before_filter :get_site

  before_filter :add_view_path

  def site

    @site ||= get_site



  def add_view_path self.class.view_paths.inspect

   self.prepend_view_path("#{RAILS_ROOT}/app/views/#{site.inner_name}") self.class.view_paths.inspect


  def get_site

   @site = Site.find_by_name(request.domain) || Site.find(1)



This is my model

class Site < ActiveRecord::Base

  def inner_name
    name.gsub(/[^a-zA-Z0-9]/, '')


can someone tell me why this code is working in my local machine and it
is not working when i'm trying to host my project

PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!