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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:45:49+00:00 2026-05-12T09:45:49+00:00

I have a calendar_date_select in a view that shows a table listing all the

  • 0

I have a calendar_date_select in a view that shows a table listing all the information on a certain phone. I want to add a To: and From: date range that a user can select and update the table in the view. The structure is like this:

Usage Controller
Detail action in the usage controller that shows the call history from a certain phone.
Inside detail I want the To and from fields with a refresh button.

What is exactly happening in this code:

<% form_for :date_range do |f| %>
    <%= f.calendar_date_select :start, :time => true  %>
    <%= f.calendar_date_select :end, :time => true  %>
    <%= f.submit "Submit" %>
<% end %>

Does this pass a hash to the usage controller and look for a date_range method? My current route looks like this

usage/detail/id-of-phone

I would like it to look something like this:

usage/detail/id-of-phone#start-end

So I could then (I think) extract the start and end dates from the params with just params[:start] and params[:end]. Am I doing this right, or is there a better way to get the desired result that I want.

  • 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-12T09:45:49+00:00Added an answer on May 12, 2026 at 9:45 am

    I haven’t used the calendar_date_select plugin, but you should be getting the parameters back already.

    params[:date_range][:start]
    params[:date_range][:end]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a reporting services project that is displayed as part of an
In the application there is a default report the user see's listing all the
I have a date picker <%= calendar_date_select_tag from_date, nil, :embedded => false, :year_range =>
Anyone have any success with a JRuby on Rails war deployment and calendar_date_select? The
i'm developing a read-only weekly calendar view of users's events. Columns are the days
I have a registration page, and because of content issues we have to request
I have created a web custom control and used within an aspx page. I
I'm trying to display events in calendar generated by calendar_date_select plugin for Rails. I
I'm struggling since a few hours with this design question. In Cocoa for example,

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.