Skip to content

Commit

Permalink
ahora se usa curt como clave principal
Browse files Browse the repository at this point in the history
  • Loading branch information
clodo committed Oct 18, 2012
1 parent b70d644 commit 95a16e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def yesno(value)
erb(:"faq", :layout => true)
end

get "/industrias/:cuit" do |cuit|
@industria = Industrias.where(:cuit => cuit).first
get "/industrias/:curt" do |curt|
@industria = Industrias.where(:curt => curt).first
erb(:"industria")
end

Expand Down
2 changes: 1 addition & 1 deletion views/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
<script type='text/html' id='industrias-bubble-template'>
<div class='bubble'>
<header>Industria</header>
<h1><a href='/industrias/${cuit.value}'>${razon_social.value}</a></h1>
<h1><a href='/industrias/${curt.value}'>${razon_social.value}</a></h1>
<span>Click para ver detalle</span>

<table class='info'>
Expand Down

0 comments on commit 95a16e3

Please sign in to comment.