Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8544705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:37:30+00:00 2026-06-11T12:37:30+00:00

rails 3.2.8 simpleform Im trying to get a default value for each of the

  • 0
  • rails 3.2.8
  • simpleform

Im trying to get a default value for each of the day, month, year fields a “Select from list” while keep the below code with styling. Tried nummerous attempts, anyone knows how to do this? Would be very much appreciated thx!

= p.label t(:date_of_birth)
      = p.input :dob,
                :class => "extra",
                :as => :date,   :start_year => Date.today.year,
                                :end_year => Date.today.year - 80,
                                :month => Date.today.month,
                                :order => [:day, :month, :year],
                                :label => false,
                                :input_html => { :style => "width: 102px" }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:37:31+00:00Added an answer on June 11, 2026 at 12:37 pm

    ugh.. I found out myself after 30 minutes more digging, it was just a simple :prompt => “select” to assign to all 3 dropdowns of the dob collection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Rails 3.2.8, Devise 2.1.2, & Simpleform 2.0.2 I'm trying to redirect user upon
I am new to rails development and I am trying to get the auto_html
I just started trying to get acquainted with Rails, and I don't really know
I'm using the Simpleform gem for my rails app and I have a form
Rails 3.1 I'll simplify my application to get at my question. I have two
I am trying to test coffee script in my rails 3.1 project, but it
DEPRECATION WARNING: f.error_messages was removed from Rails and is now available as a plugin.
I'm trying to get a messaging feature working (using the acts-as-messageable gem) and I
I have a rails app trying to incorporate some AJAX where clicking new opens
I'm using the simple_form gem in rails 3.2.2 and am trying to set up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.