I have a dropdown menu in my layout/applications.html.erb done with twitter bootstrap

<li class="divider-vertical"></li>
      <li class="dropdown">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown" > <%= current_user.name %> </a>
      <ul class="dropdown-menu">
        <%= link_to 'Preferinte',edit_user_path(current_user) %>
        <a href="/logout">Iesire</a>
      </ul>
</li>

Everything works fine on my local machine but when I uploaded it on EngineYard the dropdown won't work .

有帮助吗?

解决方案

Are you on rails 3.0?

Did you compress the rails assets before deploy? Look for server logs to see if its failing to render the required javascript assets & css stylesheets. A good place to start will be to do

rake assets:precompile

or to just disable compressing static assets in production.rb using

config.assets.compress = true
config.assets.compile = true

Also ensure serving static assets is enabled in production.rb

  config.serve_static_assets = false
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top