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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:08:49+00:00 2026-06-06T13:08:49+00:00

Ordinarily, using form_for(@foo) means that on the back end of the form’s action, you’ll

  • 0

Ordinarily, using form_for(@foo) means that on the back end of the form’s action, you’ll have the form data in params[:foo], but in my case I’d like to have a custom namespace applied to these params, i.e. params[:bar], not params[:foo].

I’m not talking about making the namespace longer by supplying the :namespace argument to the form_for method. To the contrary, my current name is overlong, and I want to shorten it. More importantly, I’m actually swapping a new model in place of an existing one, so the controller is filled with calls to params[:quoter], whereas our new model supplies params[:company_quoter_intf_quoter]. Any ideas?

Specs: Ruby 1.9.3, Rails 3.2.3

  • 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-06T13:08:50+00:00Added an answer on June 6, 2026 at 1:08 pm

    What you are looking for is:

    form_for(@foo, :as => :bar)
    

    The documentation for this can be found at:

    http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html

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

Sidebar

Related Questions

I have an action that takes POST data secured by sfGuard. This means that
I have a simple form that uploads an image to a database. Using a
I'm new to using CURL, but I have successfully got it to submit ordinary
We have a page that ordinarily has two elements arranged side-by-side. Despite exploring a
Let me begin by admitting that I am ordinarily a Java programmer, but I
I have a simple Google App Engine app, that I wrote using ordinary strings.
Ordinarily I wouldn't just post an error message on SO, but after a Google
i have to make some updates to a web site built using expression engine.
I currently have a drop-line horizontal menu using an unordered list with the following
I am using the latest version of Twitter Bootstrap on a project. I have

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.