English 中文(简体)
Nesta CMS和铁路3一体化: 男性没有工作
原标题:Nesta CMS and Rails3 integration: menu is not working

我已经成功地进行了一些实验,将斜线与铁路连接起来(见)。 是否应当将 Nesta CMS纳入铁路3应用? Nesta CMS和铁路3一体化:在离轨铁路3号申请中增加博客

但是,正如“

为了给它一个尝试,我用nesta demo:content建造了著名的内容-demo站点,但右边上的所有链接,都来自内容-demo/menu.txt,由于与主要铁路连接(,而不是与嵌入的内线性log博客(

这里是我目前的文件集,一体化是我之间的。 铁路3.0.10和 Nest0.9.10:

config/routes.rb

  match  /blog  => Nesta::App
  match  /css/*style.css  => Nesta::App
  match  /attachments/*file  => Nesta::App
  root :to => "home#index"

最新资料:

利用mount Nesta:App, :at => /blog ,而不是match /blog => Nesta:App 丰富的结果......

config/ initializers/nesta.rb

require "nesta/env"
require "nesta/app"
Nesta::Env.root = ::File.expand_path("../../nesta-blog", File.dirname(__FILE__))
Nesta::App.root = ::File.expand_path("../../nesta-blog", File.dirname(__FILE__))

nesta-blog/config/config.yml

...
content: nesta-blog/content-demo
...

I thought was depending by how nesta built the relative path of menu s liks and that was depending on base_url method in nesta-0.9.10/lib/nesta/app.rb.

Than I在<>url =上尝试在本地制造绝食。

  def base_url
    url = "http://#{request.host}/blog"
    request.port == 80 ? url : url + ":#{request.port}"
  end

http://www.ohchr.org。

最新资料:

很少有人尝试<代码> Nesta:Menu.for_path(/ ),载于

  def set_common_variables
    @menu_items = Nesta::Menu.for_path( / )
    @site_title = Nesta::Config.title
    set_from_config(:title, :subtitle, :google_analytics_code)
    @heading = @title
  end

没有结果。

我的头痛-博客/同声/门乌。

marking-up-pages
  examples/using-markdown
  examples/using-textile
  examples/using-haml
  adding-attachments
menu-editing
publishing-a-feed

并且如果我试图把诸如:

/ or /blog or /nesta-blog the menu disappear ...

So my question is, how does it work ? Do you have any suggestion / workaround ?

Thanks in advance Luca G. Soave

问题回答




相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...