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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:13:46+00:00 2026-05-24T21:13:46+00:00

I am using rails 3.1.0.rc3 with formtastic 2.0.0.rc2 and I am getting this error

  • 0

I am using rails 3.1.0.rc3 with formtastic 2.0.0.rc2 and I am getting this error –

undefined method `inputs' for #<ActionView::Helpers::FormBuilder:0x000001059c2fb0>

Here is the block of code

 = form_tag '#', :class => 'formtastic' do
  = fields_for CustomFields::Field.new, :builder => Formtastic::Helpers::FormHelper.builder do |g|
    = g.inputs :name => :attributes do
      = g.input :_alias
      = g.input :hint
      = g.input :text_formatting, :as => 'select', :collection => options_for_text_formatting, :include_blank => false, :wrapper_html => { :style => 'display: none' }
      = g.input :target, :as => 'select', :collection => options_for_association_target, :include_blank => false, :wrapper_html => { :style => 'display: none' }

Is this a bug ?

Thanks, Alex

  • 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-24T21:13:48+00:00Added an answer on May 24, 2026 at 9:13 pm

    You are trying to use a formtastic method here. When you are actually in a block for Rails’s form builder.

    You need semantic_form_for and formtastic in your Gemfile to use f.inputs for example..

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

Sidebar

Related Questions

using rails 2.3.8. I'm getting this: [ [0] 0, [1] { name => Section,
Using Rails I'm trying to get an error message like The song field can't
Using Rails 3.2 and Twitter Bootstrap bootstrap-popover.js and bootstrap-tooltip.js here This is what I'd
Using Rails 3.2.0.rc2 and ruby 1.9.3p0 In app/views/requests/_form.html.erb I have the following code for
Using Rails 2.3.8. I have added this in my controller: filter_parameter_logging :password, :password_confirmation But
Using Rails 3.0.9, I'm trying to redirect after a post to the create method
Using: Rails 3.0.3 I have validations such as this one: validates_numericality_of :person_weight_kg, :greater_than =>
Using Rails 3.1.1. & 'rails3-jquery-autocomplete' I think this question should be quite simple for
Using Rails 3.1.1, I'm getting occasional errors in production where it seems like the
Using rails 3.2.3. This is driving me crazy. I know that active record is

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.