app/controllers/mixins/breadcrumbs_mixin.rb
# TODO: Replace breadcrumb_url with url to right controller (database parameter to controller)
# and add :url => breadcrumb_url parameter to return hash
Replace breadcrumb_url with url to right controller (database parameter to controller)
and add :url => breadcrumb_url parameter to return hash
Replace breadcrumb_url with url to right controller ( database parameter to controller ) and add : url = > breadcrumb_url parameter to return hash
def special_page_breadcrumb(variable)
      return unless variable
      if variable.first[:key]
        title = variable.first[:key]
      elsif floating_ip_address?(variable.first)
        title = variable.first[:address]
      else
        title = variable.first[:name]
      end
      {:title => title} if title
    end
def special_page_breadcrumb ( variable ) return unless variable if variable . first [ :key ] title = variable . first [ :key ] elsif floating_ip_address? ( variable . first ) title = variable . first [ :address ] else title = variable . first [ :name ] end { :title => title } if title end
TODO: Replace breadcrumb_url with url to right controller (database parameter to controller)
and add :url => breadcrumb_url parameter to return hash
TODO : Replace breadcrumb_url with url to right controller ( database parameter to controller ) and add : url = > breadcrumb_url parameter to return hash
# breadcrumb_url = url(controller_url, notshow, variable.first[:id]) # EMS has key instead of name # FloatingIps do not have name
variable
<not_specific>