0

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 .

lesce
  • 6,224
  • 5
  • 29
  • 35
  • Do you see any errors in your browser's console? – James Feb 19 '12 at 23:46
  • extensions/event.js:185 Error in event handler for 'undefined': undefined chrome.Event.dispatchextensions/event.js:185 chromeHidden.Port.dispatchOnMessage – lesce Feb 20 '12 at 08:18
  • don't think so , I tried it on firefox and safari and I get the same problem . – lesce Feb 23 '12 at 15:27

1 Answers1

1

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
Kunday
  • 1,041
  • 6
  • 9
  • I tried rake assets:precompile but it still didn't work . I'm on rails 3.1.3 and I can't find the rails logs in EngineYard . – lesce Feb 20 '12 at 07:45
  • I've been using jruby on ey, but hopefully this may help. Click ssh (under your environment) to get in, then type `cd /data/yourapp/current`. This should look familiar! For me, I run `tail -n 300 log/trinidad.log` to see the end of the log file – Peter Ehrlich Feb 23 '12 at 05:27
  • I get an permission denied error , is ssh available even for the free trail accounts ? – lesce Feb 23 '12 at 16:15