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:

<p>Selecione o mes</p>

<% form_tag mes_path, :method =>'get' do %>
        <p>
<%= select_month(@data, :prefix => "mes")%>
<%= submit_tag "Busca", :data => nil %>
        </p>
<% end %>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to