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 7535159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:14:40+00:00 2026-05-30T06:14:40+00:00

I use rails 3.1, formtastic 2.0.2 and datepicker ui I made datepicker_input.rb: class DatepickerInput

  • 0

I use rails 3.1, formtastic 2.0.2 and datepicker ui

I made datepicker_input.rb:

 class DatepickerInput < Formtastic::Inputs::StringInput
include Formtastic::Inputs::Base

    def input_html_options
        super.merge(:class => "datepicker")
    end 
 end

In application.js I wrote:

 $('input.datepicker').datepicker()

I use it in my form like :as => :datepicker. I see calendar, pick date and everything is fine except for it doesn’t fill column in my model. The only thing that I noticed is that when I fill first date and then all the other fields – it works. When date field is the last – it doesn’t work. There is no errors, params[:model_name][:date_field] is not empty just nil in place of date that I chose.

  • 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-05-30T06:14:41+00:00Added an answer on May 30, 2026 at 6:14 am

    Error was in date format – database just couldn’t take format that returned datepicker.

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

Sidebar

Related Questions

I would like to use formtastic instead of standard Rails helpers for my forms,
I use rails 2.3.8 def index @posts = Post.all respond_to do |format| format.html #
I'm trying to use rails 3.2 helpers inside a prawn class, but rails throws:
I'm use Rails 2.2.2. Rails manual said, the way to extend controller from plug-in
I'd like to use Rails 2.2.2 for one project and Rails 2.3.2 for another.
I want to use rails genrate command in gem development. Is it possible?
Background: I use rails g scaffold hotel name stars:integer to start fast (and insert
I'm trying to use Rails validations for a form text box to see if
We are designing an application that will use Rails and Wordpress to interact with
I have a non-rails application that I want to use rails active-record migrations with.

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.