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

The Archive Base Latest Questions

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

I was converting a link_to to a button_to when I noticed that the date-type

  • 0

I was converting a link_to to a button_to when I noticed that the date-type = json option did not work correctly. After some googling I discovered that somebody has a patch for it on github just last month:

https://github.com/rails/rails/pull/3156

It was merged into rails:master 3 weeks ago, and appears to be in tag 3.1.1.
But my project is currently on 3.0.8 and I’m not sure I’m ready to make the leap just yet due to the unfamiliar asset pipeline business.

What are some options for getting the patch 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-26T06:40:26+00:00Added an answer on May 26, 2026 at 6:40 am

    I see two options:

    • either inside an initializer you reopen the class and redefine (overrule) the button_to with the patched version. You can then upgrade to 3.0.10 and it will keep working. Remove the initializer when upgrading to 3.1.1 and your code does not have to change.
    • not entirely sure about this, but I think inside ApplicationHelper –or any other helper, you can place this method, call it my_own_button_to and then you can use it in your views.

    Hope this helps.

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

Sidebar

Related Questions

I am converting some of my link_to_remote generators with link_to as the AJAX calls
Converting my current code project to TDD, I've noticed something. class Foo { public
I am considering converting a project that I've inherited from .net 1.1 to .net
I need a little help converting some VB.NET code to C#. I have tried
I wound up converting a table to just divs... But, in doing that, I
NOTE : My problem is NOT that my links are not being replaced. But,
I'm on a project involving converting HTML code to HTML5, and I'd like some
I'm converting some javascript to jQuery from ExtJS and I don't know what this
i'm working with an existing client-side legacy database that we're converting to MySQL for
Basically I'm converting some template I made into html 5. Done a little research

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.