Revert to using join instead of to_sentence for now as to_sentence is
broken in rails 2.2 when I18N is in use. We can go back to using to_sentence once we have gone to rails 2.3 which fixes the problem. Close #1906.
This commit is contained in:
parent
9fcea942e8
commit
a7219de757
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
||||||
<%= link_to h(printable_name(wn.node)), :action => "node", :id => wn.node_id.to_s %>
|
<%= link_to h(printable_name(wn.node)), :action => "node", :id => wn.node_id.to_s %>
|
||||||
<% related_ways = wn.node.ways.reject { |w| w.id == way_details.id } %>
|
<% related_ways = wn.node.ways.reject { |w| w.id == way_details.id } %>
|
||||||
<% if related_ways.size > 0 then %>
|
<% if related_ways.size > 0 then %>
|
||||||
(<%= t 'browse.way_details.also_part_of', :count => related_ways.size, :related_ways => related_ways.map { |w| link_to(h(printable_name(w)), :action => "way", :id => w.id.to_s) }.to_sentence %>)
|
(<%= t 'browse.way_details.also_part_of', :count => related_ways.size, :related_ways => related_ways.map { |w| link_to(h(printable_name(w)), :action => "way", :id => w.id.to_s) }.join(",") %>)
|
||||||
<% end %>
|
<% end %>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue