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

  • Home
  • SEARCH
  • 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 9015401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:44:31+00:00 2026-06-16T03:44:31+00:00

Hi im using ruby on rails, when i enter the date of birth on

  • 0

Hi im using ruby on rails, when i enter the date of birth on the years is just giving me from 2007 to 2012,
i have this command on my db, i bold the one that is giving me the error, the thing is i need to have all the options to select a date of birth and also to select them in the future of course

class CreatePacientes < ActiveRecord::Migration
  def change
    create_table :pacientes do |t|
      t.string :cedula
      t.string :nombre
      t.string :apellido1
      t.string :apellido2
      **t.date :fecha_nacimiento**
      t.string :genero
      t.string :estado_civil
      t.string :provincia
      t.string :canton
      t.string :distrito
      t.text :otras_senas
      t.string :telefono_casa
      t.string :telefono_celular
      t.string :correo_electronico
      t.string :nacionalidad
      t.integer :anos_estudio
      t.string :profesion
      t.string :ocupacion

      t.timestamps
    end
  end
end
  • 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-16T03:44:33+00:00Added an answer on June 16, 2026 at 3:44 am

    If you look at the documentation of the date_select helper, you will see that it accepts these two options:

    :start_year - Set the start year for the year select. Default is Time.now.year - 5.
    
    :end_year - Set the end year for the year select. Default is Time.now.year + 5.
    

    What you’re seeing are the default values. Although I’m not sure why your max is 2012, not 2017, because it should be +/- 5 years. Anyway, try to pass the limits to get the range you need. Or don’t use date_select if you need to input any year.

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

Sidebar

Related Questions

Hi im using ruby on rails, when i enter the date of birth on
I have just started coding with rails. I am using: Rails 3.2.8 ruby 1.9.3p194
I am using Ruby on Rails, but I think this question could be applied
I am using Ruby on Rails 3.2.2 and MySQL. From the logger I know
I'm using Ruby on Rails to develop a web application. I have a wiki
Curious as to how to approach this same problem using ruby / rails -
I am creating a system that stores cards using Ruby/Rails/HAML - In this case
This is my first project using Ruby on Rails and I'm working on the
I have hit an interested Problem. I am using ruby 1.9.3 and rails 3.2.3
Using Ruby on Rails 3, I have a page with a list of comments

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.