{"action":"created","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/9007","repository_url":"https://api.github.com/repos/CartoDB/cartodb","labels_url":"https://api.github.com/repos/CartoDB/cartodb/issues/9007/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/issues/9007/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/9007/events","html_url":"https://github.com/CartoDB/cartodb/issues/9007","id":166561857,"number":9007,"title":"uninitialized constant Carto::StaticMapsURLHelper","user":{"login":"alonsogarciapablo","id":390398,"avatar_url":"https://avatars.githubusercontent.com/u/390398?v=3","gravatar_id":"","url":"https://api.github.com/users/alonsogarciapablo","html_url":"https://github.com/alonsogarciapablo","followers_url":"https://api.github.com/users/alonsogarciapablo/followers","following_url":"https://api.github.com/users/alonsogarciapablo/following{/other_user}","gists_url":"https://api.github.com/users/alonsogarciapablo/gists{/gist_id}","starred_url":"https://api.github.com/users/alonsogarciapablo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alonsogarciapablo/subscriptions","organizations_url":"https://api.github.com/users/alonsogarciapablo/orgs","repos_url":"https://api.github.com/users/alonsogarciapablo/repos","events_url":"https://api.github.com/users/alonsogarciapablo/events{/privacy}","received_events_url":"https://api.github.com/users/alonsogarciapablo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CartoDB/cartodb/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"juanignaciosl","id":932968,"avatar_url":"https://avatars.githubusercontent.com/u/932968?v=3","gravatar_id":"","url":"https://api.github.com/users/juanignaciosl","html_url":"https://github.com/juanignaciosl","followers_url":"https://api.github.com/users/juanignaciosl/followers","following_url":"https://api.github.com/users/juanignaciosl/following{/other_user}","gists_url":"https://api.github.com/users/juanignaciosl/gists{/gist_id}","starred_url":"https://api.github.com/users/juanignaciosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanignaciosl/subscriptions","organizations_url":"https://api.github.com/users/juanignaciosl/orgs","repos_url":"https://api.github.com/users/juanignaciosl/repos","events_url":"https://api.github.com/users/juanignaciosl/events{/privacy}","received_events_url":"https://api.github.com/users/juanignaciosl/received_events","type":"User","site_admin":false},"assignees":[{"login":"juanignaciosl","id":932968,"avatar_url":"https://avatars.githubusercontent.com/u/932968?v=3","gravatar_id":"","url":"https://api.github.com/users/juanignaciosl","html_url":"https://github.com/juanignaciosl","followers_url":"https://api.github.com/users/juanignaciosl/followers","following_url":"https://api.github.com/users/juanignaciosl/following{/other_user}","gists_url":"https://api.github.com/users/juanignaciosl/gists{/gist_id}","starred_url":"https://api.github.com/users/juanignaciosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanignaciosl/subscriptions","organizations_url":"https://api.github.com/users/juanignaciosl/orgs","repos_url":"https://api.github.com/users/juanignaciosl/repos","events_url":"https://api.github.com/users/juanignaciosl/events{/privacy}","received_events_url":"https://api.github.com/users/juanignaciosl/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/CartoDB/cartodb/milestones/69","html_url":"https://github.com/CartoDB/cartodb/milestones/Builder","labels_url":"https://api.github.com/repos/CartoDB/cartodb/milestones/69/labels","id":1683967,"number":69,"title":"Builder","description":"","creator":{"login":"viddo","id":978461,"avatar_url":"https://avatars.githubusercontent.com/u/978461?v=3","gravatar_id":"","url":"https://api.github.com/users/viddo","html_url":"https://github.com/viddo","followers_url":"https://api.github.com/users/viddo/followers","following_url":"https://api.github.com/users/viddo/following{/other_user}","gists_url":"https://api.github.com/users/viddo/gists{/gist_id}","starred_url":"https://api.github.com/users/viddo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viddo/subscriptions","organizations_url":"https://api.github.com/users/viddo/orgs","repos_url":"https://api.github.com/users/viddo/repos","events_url":"https://api.github.com/users/viddo/events{/privacy}","received_events_url":"https://api.github.com/users/viddo/received_events","type":"User","site_admin":false},"open_issues":163,"closed_issues":195,"state":"open","created_at":"2016-04-05T09:20:50Z","updated_at":"2016-07-27T15:48:19Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-07-20T11:44:13Z","updated_at":"2016-07-27T15:48:44Z","closed_at":"2016-07-27T15:45:42Z","body":"I got an `uninitialized constant Carto::StaticMapsURLHelper` error when loading an embed.\r\n\r\nHere's the stack trace:\r\n\r\n```\r\nNameError in Carto/builder/public/embeds#show\r\n\r\nShowing /home/ubuntu/www/production.cartodb.com/current/app/views/carto/builder/public/embeds/show.html.erb where line #5 raised:\r\n\r\nuninitialized constant Carto::StaticMapsURLHelper\r\n\r\nExtracted source (around line #5):\r\n\r\n2: \r\n3: <%= content_for(:description) do %><%= @vizjson[:description] ? \"#{@vizjson[:description].strip_tags}. \" : \"\" %>Map created by <%= @vizjson[:user][:fullname] %> in CARTO<% end %>\r\n4: \r\n5: <%= content_for(:twitter_card) do %><%= Carto::StaticMapsURLHelper.new.url_for_static_map(request, @visualization, 560, 300) %><% end %>\r\n6: \r\n7: <%= content_for(:facebook_card) do %><%= Carto::StaticMapsURLHelper.new.url_for_static_map(request, @visualization, 1200, 630) %><% end %>\r\n8: \r\nRails.root: /home/ubuntu/www/production.cartodb.com/current\r\n\r\nApplication Trace | Framework Trace | Full Trace\r\napp/views/carto/builder/public/embeds/show.html.erb:5:in `block in _app_views_carto_builder_public_embeds_show_html_erb__3689997915482980958_35946260'\r\napp/views/carto/builder/public/embeds/show.html.erb:5:in `_app_views_carto_builder_public_embeds_show_html_erb__3689997915482980958_35946260'\r\napp/controllers/carto/builder/public/embeds_controller.rb:20:in `show'\r\napp/controllers/application_controller.rb:99:in `wrap_in_profiler'\r\n```\r\n\r\nAs discussed offline, requiring that dependency in the template explicitly with `<% require_dependency 'static_maps_url_helper' %>` fixes the problem. We might need to change it in other templates too.\r\n\r\ncc: @juanignaciosl @javitonino "},"comment":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/comments/235629076","html_url":"https://github.com/CartoDB/cartodb/issues/9007#issuecomment-235629076","issue_url":"https://api.github.com/repos/CartoDB/cartodb/issues/9007","id":235629076,"user":{"login":"juanignaciosl","id":932968,"avatar_url":"https://avatars.githubusercontent.com/u/932968?v=3","gravatar_id":"","url":"https://api.github.com/users/juanignaciosl","html_url":"https://github.com/juanignaciosl","followers_url":"https://api.github.com/users/juanignaciosl/followers","following_url":"https://api.github.com/users/juanignaciosl/following{/other_user}","gists_url":"https://api.github.com/users/juanignaciosl/gists{/gist_id}","starred_url":"https://api.github.com/users/juanignaciosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanignaciosl/subscriptions","organizations_url":"https://api.github.com/users/juanignaciosl/orgs","repos_url":"https://api.github.com/users/juanignaciosl/repos","events_url":"https://api.github.com/users/juanignaciosl/events{/privacy}","received_events_url":"https://api.github.com/users/juanignaciosl/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T15:48:44Z","updated_at":"2016-07-27T15:48:44Z","body":"I got one today and fixed all at #9145."}}
{"actor":{"display_login":"juanignaciosl"}}