문제

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