[Rails] Re: date_select
Alexis Mueller wrote:
> Without knowing more about your app and your models, I would ask what
> the :post refers to in your date_select.
>
> If I understand you correctly, you want to render a date select field
> for the 'birthdate' attribute. What model does this attribute belong
> to? Are you using the date_select as part of a form? If so could you
> post that entire form?
>
> Without further info, I'd say get rid of the ':post' in the
> date_select. And go from there.
>
> -Alexis M.
Thanks for your reply..
:post is my object and the :birthdate is my field in table. With the
help of :post I am able to generate field name like post[birthdate]. I
cant remove that because I am using multi model in a single form.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home