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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:49:59+00:00 2026-05-26T19:49:59+00:00

Here is my code for my edit.html.erb: <script src=http://js.nicedit.com/nicEdit-latest.js type=text/javascript></script> <script type=text/javascript>bkLib.onDomLoaded(nicEditors.allTextAreas);</script> <div class=row>

  • 0

Here is my code for my edit.html.erb:

<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
<script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>
<div class="row">
  <br />
  <div class="span12">
    <h2>Main content</h2>
    <%= form_for(@post) do |f| %>
  <% if @post.errors.any? %>
  <div id="errorExplanation">
    <h2><%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:</h2>
    <ul>
    <% @post.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
    </ul>
  </div>
  <% end %>
    <h1>New post</h1>
    <div class="field">
      <%= f.label :Title %><br />
      <%= f.text_field :title %>
    </div>
   <div class="field">
      <%= f.label :content %><br />
      <%= f.text_area :content, :rows => "40", :cols => "40" %>
    </div>
    <div class="field">
      <%= f.label :slug_url %><br />
      <%= f.text_field :slug_url %>
    </div>
    <div class="field">
      <%= f.label :Project %><br />
      <%= f.text_field :project %>
    </div>
    <div class="field">
      <%= f.label :Desciption %><br />
      <%= f.text_field :desc %>
    </div>
    <div>
      <%= f.submit %>
    </div>
<% end %>
  </div>
</div>

On my webpage when it loads the form_for stuff is super skinny and won’t break out of a very narrow section. When I got to inspect element and I look at the h2 it spans the whole 12 columns, but everything else doesn’t. I can adjust the col number on the text area and it does nothing. It looks like it is defaulting to the the smallest text_field for it’s width.

Any ideas on how I can figure out what is going wrong?

  • 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-26T19:49:59+00:00Added an answer on May 26, 2026 at 7:49 pm

    At the other answers mention, this should be handled by your CSS. Though it’s difficult to know exactly without knowing the intracicies of your stylesheet, something like this:

    .edit_post input[type=text], .edit_post textarea {
      width: 100%;
      /* or */
      width: 450px;
    }
    

    will probably work.

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

Sidebar

Related Questions

Here is the relevant code from views/products/edit.html.erb : <%= form_for(:product, :url => {:action =>
Here is a piece of code in edit.html.erb which does not work. The purpose
I have this html code that i want to edit with jQuery. Here is
Edit: The code here still has some bugs in it, and it could do
EDIT - The code looks strange here, so I suggest viewing the files directly
ok here's some code: prompt>rails my_app prompt>cd my_app prompt>script/generate scaffold service_type title:string time_allotment:integer prompt>rake
Why this: # edit.html.erb <%= form_for @product do |f| %> <%= f.fields_for :shop do
Why this: # edit.html.erb <%= form_for @product do |f| %> <%= f.fields_for :shop do
FIXED : SEE BELOW ok. so here's my app. http://libwiki.heroku.com/libraries if you view it
Here's my sinatra code: get '/' do foo = 'not bar' erb :index end

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.