Note that there are some explanatory texts on larger screens.

plurals
  1. PORails : gmaps4rails map does not show
    primarykey
    data
    text
    <p>I am aware there are many questions on this topic, however non work for me for some reason. I have installed gmaps4rails gem (up to date). I have followed all the instructions and have included all the necessary files for it to work. Everything is fine, however the only problem is that the actual map does not load/render?</p> <p>This is my layout page:</p> <blockquote> <pre><code> &lt;html&gt; &lt;head&gt; &lt;title&gt;Mash's Wing Ranch&amp;reg; | &lt;%= @page_title || 'Admin Area' %&gt;&lt;/title&gt; &lt;%= stylesheet_link_tag('admin_main', :media =&gt; 'all') %&gt; &lt;%= stylesheet_link_tag "gmaps4rails" %&gt; &lt;%= javascript_include_tag ('gmaps4rails.base','gmaps4rails.bing','gmaps4rails.googlemaps','gmaps4rails.mapquest','gmaps4railsopenlayers') %&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="headercontainer"&gt; &lt;div id="headercontent"&gt; &lt;div id="headerlogo"&gt;&lt;/div&gt; &lt;div id="headernavigation"&gt; &lt;ul&gt; &lt;li&gt;&lt;%= link_to("Users", {:controller =&gt; 'admin_users', :action =&gt; 'list'}) %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= link_to("Menu", {:controller =&gt; 'menus', :action =&gt; 'list'}) %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= link_to("Sauces", {:controller =&gt; 'sauces', :action =&gt; 'list'}) %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= link_to("Ranches", {:controller =&gt; 'ranches', :action =&gt; 'list'}) %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= link_to("Franchise", {:controller =&gt; 'franchises', :action =&gt; 'list'}) %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= link_to("Mailing List", {:controller =&gt; 'mailing_lists', :action =&gt; 'list'}) %&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="headerinformation"&gt; &lt;p&gt;Admin Area&lt;/p&gt; &lt;p&gt;&lt;%= Time.now.strftime("%d/%m/%Y") %&gt;&lt;/p&gt; &lt;p&gt;&lt;%= Time.now.strftime("%I:%M%p") %&gt;&lt;/p&gt; &lt;p&gt;User - &lt;%= session[:first_name] %&gt; &lt;%= session[:last_name] %&gt;&lt;/p&gt; &lt;p&gt;&lt;%= link_to("Log Out", :controller =&gt; 'access', :action =&gt; 'logout') %&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="pagetitlecontainer"&gt; &lt;div id="pagetitlecontent"&gt; &lt;h3&gt;&lt;%= @pagetitle %&gt;&lt;/h3&gt; &lt;/div&gt; &lt;/div&gt; &lt;% if !flash[:notice].blank? %&gt; &lt;div id="noticecontainer"&gt; &lt;div id="noticecontent"&gt; &lt;h4 class="notice"&gt; &lt;%= flash[:notice] %&gt; &lt;/div&gt; &lt;/div&gt; &lt;% end %&gt; &lt;% if !flash[:error].blank? %&gt; &lt;div id="errornoticecontainer"&gt; &lt;div id="errornoticecontent"&gt; &lt;h4 class="notice"&gt; &lt;%= flash[:error] %&gt; &lt;/div&gt; &lt;/div&gt; &lt;% end %&gt; &lt;div id="contentcontainer"&gt; &lt;div id="content"&gt;&lt;%= yield %&gt;&lt;/div&gt; &lt;/div&gt; &lt;div id="footercontainer"&gt; &lt;div id="footercontent"&gt; &lt;p&gt;Mash's Wing Ranch&amp;reg; All Rights Reserved 2012&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;%= yield :scripts %&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> </blockquote> <p>I have also added the <code>&lt;%= gmaps4rails(@json) %&gt;</code> in my view.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload