<%= javascript_include_tag :infopark_editing %> <%= javascript_tag do %> $(function() { infopark.i18n.set_locale("<%= I18n.locale %>"); infopark.editing.initialize(); infopark.obj.current_container_id = "<%= @obj.try(:id) %>"; infopark.admin_gui_base_url = "<%= RailsConnector::CmsRestApi.credentials[:url] %>"; }); <% end %>