Forum: Ruby on Rails help - how to use date_select in form?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
33478bbfbd0e2bf2737eca60a555af76?d=identicon&s=25 farocco (Guest)
on 2005-12-09 16:33
(Received via mailing list)
Hello,

This is giving me an error.

 <tr><td>Date Sent</td><td><%= date_select("receipt","DATESENT")
%></td></tr>

receipt is the controller, datesent is the field

What am I doing wrong?

Thanks
Frank
2dd904ec5981c31e7bb7a5743a53caf8?d=identicon&s=25 Bruce Balmer (brucebalmer)
on 2005-12-09 18:06
(Received via mailing list)
Frank:

I think it is because instance variables are available from the
controller in the view but not non instance variables.  If I am
talking rubbish here (anyone) feel free to shoot me down.  I recall a
similar problem though.

bruce
33478bbfbd0e2bf2737eca60a555af76?d=identicon&s=25 farocco (Guest)
on 2005-12-09 19:18
(Received via mailing list)
ok, I'm too new to understand this.
I cannot even get a one text_field to work, I get application
error(rails)

Frank
  ----- Original Message -----
  From: Bruce Balmer
  To: rails@lists.rubyonrails.org
  Sent: Friday, December 09, 2005 12:02 PM
  Subject: Re: [Rails] help - how to use date_select in form?


  Frank:


  I think it is because instance variables are available from the
controller in the view but not non instance variables.  If I am talking
rubbish here (anyone) feel free to shoot me down.  I recall a similar
problem though.


  bruce




  On 9-Dec-05, at 8:31 AM, Frank wrote:


    Hello,

    This is giving me an error.

     <tr><td>Date Sent</td><td><%= date_select("receipt","DATESENT")
%></td></tr>

    receipt is the controller, datesent is the field

    What am I doing wrong?

    Thanks
    Frank
    _______________________________________________
    Rails mailing list
    Rails@lists.rubyonrails.org
    http://lists.rubyonrails.org/mailman/listinfo/rails




------------------------------------------------------------------------------


  _______________________________________________
  Rails mailing list
  Rails@lists.rubyonrails.org
  http://lists.rubyonrails.org/mailman/listinfo/rails
This topic is locked and can not be replied to.