Try this:

script/generate scaffold Thing name:string when:datetime text:body

You'll see:

In migration:

    create_table :things do |t|
      t.string :name
      t.datetime :when
      t.text :body
    end

In view:

<h1>New thing</h1>

<% form_for(@thing) do |f| %>
  <%= f.error_messages %>
.
.
  <p>
    <%= f.label :when %><br />
    <%= f.datetime_select :when %>
  </p>

start your server and check out: localhost:3000/things/new

On Feb 9, 10:06 am, Wes Gamble <[email protected]>
wrote:
> All,
>
> Is there any built-in way in the "select" form helper to display
> something other than "Select" in the :include_blank option?
> Specifically, for a date helper, would like to show "Month", "Day",
> "Year" respectively for those options in 3 selects.
>
> Thanks,
> Wes
> --
> Posted viahttp://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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to