Hey,
I have this hosting http://www.aloefit.be/, this is my first RoR website
(the path is /). Now I have second website “Dinotra”, and I asked the
hosting helpdesk where to put it. They told me to put it in
/public/dinotra
So I have /public/dinotra/app, /public/dinotra/config/,… And surf to
http://www.aloefit.be/dinotra/public but I cant reach the page.
I have also tried http://www.aloefit.be/dinotra/
then i get:
Routing Error
Recognition failed for “/dinotra/”
When I look at the log I have
Logfile created on Mon Nov 13 07:45:38 CET 2006 by logger.rb/1.5.2.7
ScopedAccess: reset []
FrontEndController: missing default helper path front_end_helper
You have a nil object when you didn’t expect it!
The error occured while evaluating nil.downcase
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/request.rb:18:in
`method’
These are my application controllers:
I have an application controller with 2 other controllers:
class ApplicationController < ActionController::Base
end
class FrontEndController < ApplicationController
around_filter ScopedAccess::Filter.new(Fsdocument, :publish)
around_filter ScopedAccess::Filter.new(Fsimage, :publish)
#around_filter ScopedAccess::Filter.new(ModulePermission, :publish)
around_filter ScopedAccess::Filter.new(Product, :publish)
around_filter ScopedAccess::Filter.new(Album, :publish)
around_filter ScopedAccess::Filter.new(AlbumCategory, :publish)
#around_filter ScopedAccess::Filter.new(Role, :publish)
#around_filter ScopedAccess::Filter.new(User, :publish)
around_filter ScopedAccess::Filter.new(Faq, :publish)
around_filter ScopedAccess::Filter.new(FaqQuestion, :publish)
protected
def publish
{
:find => {:conditions => ['publish = 1 AND (publish_from is null OR
publish_from <= ?) AND (publish_to is null OR publish_to >= ?)',
Date.today, Date.today ]},
}
end
end
class BackEndController < ApplicationController
end
Then i have an application helper
module ApplicationHelper
end
And
module Backend::ProductsHelper
end
module Frontend::ProductsHelper
end
The other controllers I have are like this;
class Backend::ProductsController < BackEndController
end
class Frontend::ProductsController < FrontEndController
end
This works perfect local, but why does I get “missing default helper
path front_end_helper” then??
Does anyhas any exp with 2 app at the same time, they go to the same db:
Application 1 => config.active_record.table_name_prefix = “a_”
Application 2 => config.active_record.table_name_prefix = “d_”
Because I can only have 1 database.
Thx.
N.