# Scaffolding and date\_select issues

**URL:** <https://www.ruby-forum.com/t/scaffolding-and-date-select-issues/134667>\
**Category:** Rails\
**Created:** [April 13, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/scaffolding-and-date-select-issues/134667 "2008-04-13T19:39:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b77776/32.png) [@carlox](https://www.ruby-forum.com/u/carlox)\
**Post date:** [April 13, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/scaffolding-and-date-select-issues/134667/1 "2008-04-13T19:39:15Z")

</div>

I’ve started a fresh new app via SSH

here’s what I typed:  
$ rails test

cd test

$ ruby script/generate scaffold Evento nombre:string locacion:text  
fecha:date

when I try to create a new ‘evento’ from the Eventos listing I get the  
following error:

NoMethodError in Eventos#new

Showing eventos/new.html.erb where line #13 raised:

undefined method `fecha’ for #\<Evento id: nil, nombre: nil, locacion:  
nil\>

Extracted source (around line #13):

10:  
11:

12: **Fecha**  
  
13: \<%= f.date\_select :fecha %\>  
14:  
15:  
16:

I’ve tried changing the line 13, like this:

\<%= date\_select( “fiesta”, “fecha”, :start\_year =\> 2008 ) %\>

but it doesn’t work either. I can’t see where’s the error. can you  
help me please?  
I have rails 2.0, ruby 1.8.6 running in my server ( a [bluehost.com](http://bluehost.com)  
hosting account)
