beyondthestory / rails_admin_map_field

A plugin for RailsAdmin to provide a Google Maps input for lat/long fields
40 stars 73 forks source link

Should this work in the `show` block? #10

Open chrisbloom7 opened 10 years ago

chrisbloom7 commented 10 years ago

I'd like to only show the map on the show view, but have text fields for the edit view. Should this work? (It currently doesn't)

class Location < ActiveRecord::Base
  has_and_belongs_to_many :materials

  rails_admin do
    show do
      field :latitude, :map 
    end
  end
end
alemata commented 10 years ago

@beyondthestory any update on this? Does not work for me neither