On Fri, 2010-01-29 at 05:53 +0100, Smit Shah wrote:
> Hi all
> I am using rails 2.3.5. But I am facing the problem with date_select
> tag. I have written code as follow.
> 
> = date_select :post, :birthdate, :start_year => 1950, :end_year =>
> Date.today.year, :prompt => { :day => 'Select day', :month => 'Select
> month', :year => 'Select year' }
> 
> But I got error like "wrong number of arguments (2 for 1)". If I write
> only
> = date_select :post, :birthdate
> than also I got the same error.
> 
> I have tried like
> date_select :post
> than it gives me error like "wrong number of arguments (1 for 2)".
> 
> Help me out.....
----
http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M001698

date_select(object_name, method, options = {}, html_options = {})

I don't think you are going to have any success without the parens

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to