Closed tayfunylmaz closed 12 years ago
did you look here? https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Twitter-bootstrap
Please confirm you haven't any js error. Actually, I fear the css conflict with twitter bootstrap.
The problem is solved. Your are says, "Actually, I fear the css conflict with twitter bootstrap." when I create a simple project with rails 3.2.1 not use twitter-bootstrap system then I see maps.. So, the problem is twitter-bootstrap.
Thanks very much for your help. Taifunylmaz.
I guess this can be closed then
hi, I want to show map but, ı don't show map. I use rails 3.2.1 and ruby 1.9.3p125 and twitter-bootstrap. in gem file:
gem 'rails', '3.2.1'
Bundle edge Rails instead:
gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql' gem 'devise' gem 'gmaps4rails'
gem 'carrierwave' gem 'mini_magick'
Gems used only for assets and not required
in production environments by default.
group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1'
See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer'
gem 'uglifier', '>= 1.0.3' end
gem 'jquery-rails'
in manifest file --- app/assets/javascript/application.rb //= require jquery //= require jquery_ujs //= require_tree . //= require gmaps4rails/gmaps4rails.base //= require gmaps4rails/gmaps4rails.googlemaps
in controller file: @list =List.find(params[:id]) @json = @list.to_gmaps4rails respond code....
in layout -- application.html.erb file, head code: <%= stylesheet_link_tag "bootstrap", :media => "all" %> <%= stylesheet_link_tag "bootstrap-responsive", :media => "all" %> <%= stylesheet_link_tag "gmaps4rails" %> <%= javascript_include_tag "application" %>
in body : <%= gmaps4rails(@json) %> <%= @json%>
in footer: <%= yield :scripts %>
html page:
in body:
[{"lat":40.714351654052734,"lng":-74.00597381591797}]
in model: acts_as_gmappable
def gmaps4rails_address address end
and footer:
where is the problem and what ? Why isn't display map ?
Thanks. Taifunylmaz.