Hi Everyone,
I used "select_date" method in my application and got 3 select
boxes
for Date, Month and Year.
Code :
<td><%= text_field ''content'',
''title'' %></td>
<td><%= text_field ''content'',
''description'' %></td>
<td><%= select_date %></td>
Now, i want to update it to my database with column name "startDt".
but i unable to do it. I am unable to name those select boxes.
Can anyone help with this...
Thanks in advance
Regards,
Vasanth
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
use this for select-date ''content'', ''startDt'' and use start_form_tag :action=>"xyz" and end_form_tag i got only this, if u are not expecting this please explain in clear.. Vasanthakumar Csk wrote:> Hi Everyone, > I used "select_date" method in my application and got 3 select boxes > for Date, Month and Year. > Code : > <td><%= text_field ''content'', ''title'' %></td> > <td><%= text_field ''content'', ''description'' %></td> > <td><%= select_date %></td> > Now, i want to update it to my database with column name "startDt". > but i unable to do it. I am unable to name those select boxes. > Can anyone help with this... > > Thanks in advance > Regards, > Vasanth-- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, Thanks for ur help. But problem is not solved. Actually i can insert or update (without select_date field), but the requirement is : i should get a date + month + year from user and store it in database (column name "startDt" type "DateTime") Still, i did as u told but got this error "undefined method `year'' for "content":String" Please help me out... -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
try this, <%= start_form_tag :action => ''xyz'' %> <%= datetime_select ''content'', ''StartDt'' %> <%= submit_tag "Create" %> <%= end_form_tag %> Vasanthakumar Csk wrote:> Hi, > Thanks for ur help. But problem is not solved. > > Actually i can insert or update (without select_date field), but the > requirement is : i should get a date + month + year from user and store > it in database (column name "startDt" type "DateTime") > > Still, i did as u told but got this error > "undefined method `year'' for "content":String" > > Please help me out...-- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes it worked out... :-) Thanks a lot. Bye -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---