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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:21:41+00:00 2026-05-28T01:21:41+00:00

How do I configure the textual representation of a model (ActiveRecord object)? Let’s say

  • 0

How do I configure the textual representation of a model (ActiveRecord object)?

Let’s say I have a model User. In my form view, the code f.submit generate a submit button, with the text “Create User” or “Update User”.
I would like to customize this text. I could write f.submit "Create Awesome User" and f.submit "Update Awesome User" depending of the action being performed, but I would expect Rails to offer a way to do this more easily, in a DRYer way.

More specifically, in my case, I have an ActiveRecord class IosApplication. In the forms, the submit button has the text : “Update Ios application“, and I would like to see “Update iOS application“

I looked into the ActiveRecord documentation, but the only thing related was set_table_name, which does not seem to be what I’m looking for.

  • 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-28T01:21:42+00:00Added an answer on May 28, 2026 at 1:21 am

    What I was looking for can be seen as localizing the app. So the, Internationalization part gave something nice enough:

    Having this in my config/locales/en.yml worked:

    en:
      activerecord:
        models:
          ios_application: iOS Application
    

    More info on Ruby on Rails Guides.

    I am not accepting this answer before a few days, in case a nicer answer is posted by someone with more experience in Rails.

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

Sidebar

Related Questions

Is it possible to configure Hibernate reverse engineering and code generation tool in such
I have tried to configure the URLs in my DispatcherServlet to map to URLs
// Configure the cell. cell.textLabel.text = [[self.drinks objectAtIndex:indexPath.row] objectForKey:@Name]; return cell; The above code
How do I configure ActiveRecord to use partial_updates in a Padrino application? Customer <
How do I configure Apache to forward a URLa of a certain extension, say
Is it possible to configure an Entity Framework model so that, when creating a
I want configure Unity to resolve an interface, say ITest , to a struct,
I configure ssl on jetty. I am using this code: import org.mortbay.jetty.security.SslSocketConnector; . .
Is it possible to configure xampp to serve up a file outside of the
How do you configure tomcat to bind to a single ip address (localhost) instead

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.