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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:23:13+00:00 2026-06-10T16:23:13+00:00

Rails 3.1.1 Active Admin 0.4.4 formtastic 2.1.1 This is the active admin controller for

  • 0

Rails 3.1.1
Active Admin 0.4.4
formtastic 2.1.1

This is the active admin controller for my Agency model.

ActiveAdmin.register Agency do
  form do |f|
    f.input :name
    f.input :contact_email, :label=>"Email invoices to"
    f.input :api_key, :hint=>"Create a key by following <a href=\"#\" target=\"_blank\">these instructions</a>".html_safe
    f.actions
  end
end

The form should render the three inputs, followed by the submit button, but all I get is:

no inputs

Just to be clear, the HTML shows no signs of the missing inputs:

<form accept-charset="UTF-8" action="/admin/agencies" class="formtastic agency" id="agency_new" method="post" novalidate="novalidate" name="agency_new">
  <div style="margin:0;padding:0;display:inline">
    <input name="utf8" type="hidden" value="✓"><input name="authenticity_token" type="hidden" value="...">
  </div>
  <fieldset class="actions">
    <ol>
      <li class="action input_action" id="agency_submit_action">
        <input name="commit" type="submit" value="Create Agency">
      </li>
    </ol>
  </fieldset>
</form>

I also tried using fieldsets, with the same (faulty) output:

ActiveAdmin.register Agency do
  form do |f|
    f.inputs "New Agency" do 
      f.input :name
      f.input :contact_email, :label=>"Email invoices to"
      f.input :api_key, :hint=>"Create a key by following <a href=\"#\" target=\"_blank\">these instructions</a>".html_safe
    end
    f.actions
  end
end

Update: I’ve discovered that commenting out the f.actions line gets formtastic to actually print the inputs, but now just without the button.

ActiveAdmin.register Agency do
  form do |f|
    f.inputs "New Agecny" do 
      f.input :name
      f.input :contact_email, :label=>"Email invoices to"
      f.input :api_key, :hint=>"Create a key by following <a href=\"#\" target=\"_blank\">these instructions</a>".html_safe
    end

    #f.actions
  end
end

Form with inputs but no button:

no button

  • 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-10T16:23:14+00:00Added an answer on June 10, 2026 at 4:23 pm

    Try using this: f.buttons :submit

    I also think that the block for buttons/actions changed a bit in a version of active admin at some point, so you may be tripped up by old tutorials, etc.

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

Sidebar

Related Questions

I'm using active admin for my rails app. I have a customer model which
I am using Ruby on Rails with Active Admin and I have one model
This is similar to my previous question Ruby On Rails Active Admin has_many changing
the active admin docs says: If you are using Rails >= 3.1, you must
I am using Rails 3.1.3 with active admin gem. I am trying overwrite the
How to convert a rails Active Records object's id:name hash object to JSON format
I'm using active admin in my rails 3.0.9 app with the default setup.i.e I
I'm new to Rails and I want to use Active Admin on my first
I am using the Active Admin gem in my Rails app, and on one
I install and configure Active Admin to my rails app. It works fine on

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.