|
@@ -182,11 +182,6 @@ end |
|
|
# Not written yet. Show how this party did at this election. |
|
|
# Not written yet. Show how this party did at this election. |
|
|
# end |
|
|
# end |
|
|
|
|
|
|
|
|
get '/bodies/?' do |
|
|
|
|
|
@bodies = Body.all |
|
|
|
|
|
haml :bodies |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
get '/bodies/:body/?' do |
|
|
get '/bodies/:body/?' do |
|
|
@body = Body.first(:slug => params[:body]) |
|
|
@body = Body.first(:slug => params[:body]) |
|
|
@districts = District.all(:body => @body, :order => [:name]) |
|
|
@districts = District.all(:body => @body, :order => [:name]) |
|
|