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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:35:45+00:00 2026-05-27T03:35:45+00:00

Just set up ActiveAdmin without any real issues, but when I get to any

  • 0

Just set up ActiveAdmin without any real issues, but when I get to any edit/create forms, I get a small issue:

I have an attribute for my users called “shortcut_url” which defines only the path to the users’ page i.e. example.com/userjohn where userjohn would be the shortcut url. Activeadmin recognizes the attribute as a URL and won’t let me create a user validating that “userjohn” is nopt a valid URL. I commend ActiveAdmin for being smart enough to catch “url” in the attribute name, but in this case, I’d rather not have this validation. Does anyone know where I can find a place to override this validation? I poked through the documentation, but to no avail… Any help would be appreciated!

  • 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-27T03:35:46+00:00Added an answer on May 27, 2026 at 3:35 am

    I think it’s actually formtastic which determines the input type. To override the validation you just need to change the input type. I had an issue with this with a field called “website” (it kept saying my url wasn’t allowed).

    Here’s an example of app/admin/user.rb:

      form do |f|
        f.inputs do
          f.input :name
          f.input :website, :as => :string # sets the input type to type="text"
        end
      f.buttons
      end
    

    It’s actually just some styles that come built in with active_admin. I know for sure they have validations on type=”url” and type=”email”. There’s probably a better way around it (disabling the style in the stylesheets) but this will get you going.

    Ryan

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

Sidebar

Related Questions

I have just set one of my forms to Localization: True and left the
I've just set up PDT in eclipse (Galileo), but get the error below when
I just set up my new homepage at http://ritter.vg . I'm using jQuery, but
I have just set up cruise control.net on our build server, and I am
I've just set up mod python with apache and I'm trying to get a
I have just set up ruby in Aptana studio and am getting the following
I have a WPF app which snaps to screen edges (I just set the
I have a CRON job php script that I just set up not too
I'm fairly new to WebService developement and have just set up my own webservice
I just set up fastcgi with lighty for django, but I'm getting the fcgi

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.