render :text => RichText.new(params[:format], params[:text]).to_html
end
- def id_iframe
- render "id_iframe", :layout => false
+ def id
+ render "id", :layout => false
end
end
hash = '#map=' + (coord.zoom || 17) + '/' + coord.lon + '/' + coord.lat
}
- $('#id-embed').attr('src', 'id_iframe' + hash);
+ $('#id-embed').attr('src', '<%= id_url %>' + hash);
</script>
<% else %>
<script type="text/javascript">alert("<%= t 'site.edit.id_not_configured' %>")</script>
match '/logout' => 'user#logout', :via => [:get, :post]
match '/offline' => 'site#offline', :via => :get
match '/key' => 'site#key', :via => :get
- match '/id_iframe' => 'site#id_iframe', :via => :get
+ match '/id' => 'site#id', :via => :get
match '/user/new' => 'user#new', :via => :get
match '/user/terms' => 'user#terms', :via => [:get, :post]
match '/user/save' => 'user#save', :via => :post