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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:24:34+00:00 2026-06-16T00:24:34+00:00

I trying to use render method inside my activeAdmin form method, but after insert

  • 0

I trying to use render method inside my activeAdmin form method, but after insert render
in code, it stopped to work.

form do |f|
    f.inputs I18n.t('sale_header') do
      f.input :client
      f.input :room
    end

    f.inputs I18n.t('sale_items')  do
      render :partial => "form_sale"
    end

    f.inputs I18n.t('totalization') do
      f.input :sub_total, :input_html => { :disabled => :true }
      f.input :discount
      f.input :total_value, :input_html => { :disabled => :true }
    end

    f.buttons
end

After insert the render method, only form_sale content is showed on screen.

Any help?
Thank You!

  • 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-16T00:24:35+00:00Added an answer on June 16, 2026 at 12:24 am

    According to the documentation , the right way to customize the form in active_admin is :

    ActiveAdmin.register Post do
      form :partial => "form"
    end
    

    and then in your partial “_form.html.erb” you should use formtastic DSL , something like this:

     <%= semantic_form_for [:admin, @post] do |f| %>
       <%= f.inputs :title, :body %>
       <%= f.buttons :commit %>
     <% end %>
    

    On the web page is clearly stated :

    If you require a more custom form than can be provided through the DSL, you can pass 
    a partial in to render the form yourself.
    

    which means , that the DSL of active_admin has some slight limitations .

    All my experiments with ‘render’ and ‘form :partial’ has finished with no result . If you’d like to use partial , it should replace all the form .

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

Sidebar

Related Questions

I'm trying to use rails 3.2 helpers inside a prawn class, but rails throws:
I am trying to use Canvas.drawLine method to draw a polygon Here's the code
I'm trying to use the jQuery get function to render the results of an
I am trying to use the http GET method to retrieve JSON object I
I am trying to use WTForms.SelectMultipleField to manage some dynamic choices on a form
I'm trying to use GLKView in UIViewController, my code looks like this CustomViewController.h #import
I am trying to use the DwmExtendFrameIntoClientArea method on an mdiparent. IsMdiContainer = true;
I'm trying to create an instance variable inside the create method of one controller
I am trying to use multithreading in my application. The method test5 tries to
I'm basically trying to use this form as a check: If option 1(value 0)

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.