On 9/19/06, John Tsombakos <[EMAIL PROTECTED]> wrote:
> On 9/19/06, John Tsombakos <[EMAIL PROTECTED]> wrote:
> > I'm looking for some hints on how to set up Radiant (and by extension
> > any rails app) under a subdirectory. (running Ubuntu with Apache2)
>
> Figures, as soon as I post, I see the recent messages about just
> exactly this. My question is then, where do I "set
> AbstractRequest.relative_url_root" as described on the wiki page?
>
> Thanks.
>
Sigh.
I just can't get it working. I tried added the behavior that John suggested -
behaviors/root_behavior.rb
class RootBehavior < Behavior::Base
register "Root"
def page_url
if parent_behavior?
clean_url(parent_behavior.child_url(@page))
else
clean_url("/subfolder/[EMAIL PROTECTED]")
end
end
end
But now the app doesn't start at all. I get an error:
/var/www/radiant/public/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:140:in
`load': /var/www/radiant/public/../config/../app/behaviors/root_behavior.rb:12:
parse error, unexpected kEND, expecting $ (SyntaxError)
I like Rails, but I have soo many problems just getting apps to run,
it's getting to be more trouble than it's worth!
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant