HI , help fetch only the same one
controller:
def mes
@data = Date.today
if params[:mes]
@ordems = Ordem.find(:all,:limit => 10, :conditions => [‘MONTH
(data)= ?’, params[:mes]])
view:
Selecione o mes
<% form_tag mes_path, :method =>‘get’ do %>
<%= select_month(@data, :prefix => “mes”)%>
<%= submit_tag “Busca”, :data => nil %>
<% end %>