hi,
i have a problem with date_select and and active_form plugin

example:


view:
form_for( "contact", :url => { :action => "form_contact" } ) do |f|
  .... other code ....
  f.date_select :period, :order => [:day, :month, :year]
  .... other code ....
end


model:
class FormContact < ActiveForm
  attr_accessor :name, :surname, :period, ......
  ... validations
end


control:
def form_contact
  @contact = FormContact.new(params[:contact])
  respond_to do |format|
    if @contact.valid?
    ..........
    end
  end
end



when i submit the for wen is present the date_select i retrive an error
controller like this:

`...@period(3i)' is not allowed as an instance variable name


why?
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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