Consulta de Empresas

<% javascript 'dynamic_cidades_pesquisa' %> <% form_tag :action => "list" do %>
Código: <%= text_field 'form', 'id', :size => 4 %> Razão Social: <%= text_field 'form', 'razao_social', :size => 35 %>
CNPJ: <%= text_field 'form', 'cnpj', :size => 17 %> Nome Fant.: <%= text_field 'form', 'nome_fantasia', :size => 35 %>
UF: <%= collection_select 'form', 'uf', Uf.find(:all, :order => "sigla"), :id, :sigla, :prompt => '' %> Cidade: <%= collection_select 'form', 'cidade', Cidade.find(:all, :order => "nome"), :id, :nome, :prompt => '' %>
<%= submit_tag 'Buscar' %>
<% end %>