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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:45:04+00:00 2026-06-10T12:45:04+00:00

How can i format a form on a rails app? I have my application.css

  • 0

How can i format a form on a rails app?
I have my application.css file, no classes where gives or ids to the form tags inside of the form action page. but the form inherited the formatting in somehow but it is not what i wanted.

Also, how can i make every single page in my rails app have its own page and css file?
i don’t want to make one master page and imbed the pages codes inside the body tag

like i want to have every single page its own application.html.erb and how to let rails know about this and not to load the default one?

I’m a php guy, so working with styling and templates very confusing to me.
when i want to format a form using css. i know how to do it, also i write the code like below:

<form id="FirstForm">

in my rails app tutorial i followed, there is no id tages or formatting inside the form tags and fields at all. don’t know how this got formatted? is it allowed to write ids and classes inside of the rails form tag?

  • 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-10T12:45:05+00:00Added an answer on June 10, 2026 at 12:45 pm

    You can pass id and class as you desire.

    Example:

    <%= form_for @article, :url => { :action => "create" }, :html => {:id => "FirstForm", :class => "your_class"} do |f| %>
    

    Check full doc.

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

Sidebar

Related Questions

In my Rails 3 app I have a simple form like: <%= form_tag({:controller =>
I have a rails app whereby you can edit your account information. When I
So Eclipse can auto-format my css files under Source->Format, or by hitting Cntl-Shift-F. When
I have a variable called account_type passed from a rails form and need to
In my rails application I have two models called Kases and Notes. They work
OK, so I've built a Rails app in which I have some controller which
I've got Ajax working on a create action in my Rails 3 app, so
How can I create a form/page in Rails that will let me input search
I have an otherwise functioning rails project where I'm trying to update some form
I have recently created a new rails 3 application, using the code that I

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.