peek / peek

Take a peek into your Rails applications.
MIT License
3.18k stars 149 forks source link

Glimpse shows .../... #13

Closed luizkowalski closed 11 years ago

luizkowalski commented 11 years ago

I installed glimpse, and when i've added the helpers to my layout, it shows this

P: F: E: sidekiq ... / ... mongo master

this is my initializer:

Glimpse.into Glimpse::Views::Sidekiq
Glimpse.into Glimpse::Views::Mongo
Glimpse.into Glimpse::Views::Git, :nwo => 'github/janky'

I tried with Puma and pow, same thing

I'm using ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin11.4.2] with rails 3.2.12

dewski commented 11 years ago

The only reason the values would be empty is if the JS isn't setup properly or the results partial hasn't been added. Could you share your application.js/coffee file and application layout file?

luizkowalski commented 11 years ago
#= require jquery
#= require jquery_ujs
#= require turbolinks
#= require jquery.turbolinks
#= require bootstrap
#= require ios-checkboxes
#= require rails.validations
#= require chosen-jquery
#= require spin
#= require ajaxspin
#= require jquery.spin
#= require glimpse
#= require_tree .
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><%= content_for?(:title) ? yield(:title) : "Cloudoc" %></title>
    <%= csrf_meta_tags %>

    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
    <![endif]-->

    <%= javascript_include_tag "application" %>
    <%= stylesheet_link_tag "application", :media => "all" %>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,600' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Lobster+Two' rel='stylesheet' type='text/css'>

    <link rel="shortcut icon" href="http://www.wooga.com/wp-content/themes/wooga-dev/images/favicon.ico" type="image/x-icon" />

</head>
<body>
    <%= render 'helpers/navbar'%>
    <div class="container fluid">
        <%= render 'helpers/messages'%>
        <div class="content" id="content">

            <div class="row">
                <div class="span12">
                    <%= render 'glimpse/bar' %>
                </div>
            </div>

            <div class="row">
                <div class="span12">
                    <%= yield %>
                </div>
            </div><!--/row-->

            <div class="row">
                <div class="span12">
                    <%= render 'glimpse/results' %>
                </div>
            </div>

        </div><!--/content-->

        <footer>
            <p class="center">&copy; Cloudoc 2012</p>
        </footer>

    </div> <!-- /container -->

</body>

<script>
$(document).ready(function(){
    $('textarea').autosize();  

    //Configura os checkboxes
    $('.public').iphoneStyle({
        checkedLabel: 'Public',
        uncheckedLabel: 'Private'
    });
});
</script>
</html>
dewski commented 11 years ago

Are there any JS errors in the console?

dewski commented 11 years ago

@luizkowalski I just pushed up a new version (0.0.4) of glimpse that supports turbolinks thanks to @awestroke. Download that and give it a shot.

luizkowalski commented 11 years ago

Worked :D