Permalink
Browse files

cleanup: removed sanitizers (fixed &xxx; issues in attributes inherit…

…ed from cp1251).

removed unnecessary species.url
  • Loading branch information...
1 parent ea58d55 commit 520d03e3d3ce27b3a865d63bcfc81d5404e20156 @khustochka committed Jan 3, 2010
Showing with 9 additions and 15 deletions.
  1. +1 −7 app/models/taxonomy/species.rb
  2. +3 −3 app/views/species/_table.html.haml
  3. +5 −5 app/views/taxa/_table.html.haml
@@ -7,14 +7,8 @@ class Species < Taxon
belongs_to :supertaxon, :class_name => "Familia", :foreign_key => "familia_id"
- attr_reader :url
-
def to_param
name_la.urlize
end
-
- def after_find
- @url = "/aves/#{to_param}" # TODO: generate url from route
- end
-
+
end
@@ -8,8 +8,8 @@
%td.numeric
= counter_up :start_at => 1
%td
- = link_to h(item.name_ru), item.url
+ = link_to item.name_ru, item
%td
- %em.lat= h item.name_la
+ %em.lat= item.name_la
%td
- = h item.authority
+ = item.authority
@@ -12,15 +12,15 @@
- hierarchy_cells(@bunch, @proceed_methods.dup) do |item|
%tr
%td.numeric
- = h item.sort
+ = item.sort
%td
- = link_to h(item.name_la), item
+ = link_to item.name_la, item
%td
- = h item.name_en
+ = item.name_en
%td
- = h item.name_ru
+ = item.name_ru
%td
- = h item.name_uk
+ = item.name_uk
%td.boolean
= !item.synonims.empty? ? "+" : "-"
%td.boolean

0 comments on commit 520d03e

Please sign in to comment.