search for: text_area

Displaying 20 results from an estimated 181 matches for "text_area".

2006 Jan 21
1
text_area content with text_area and not text_area_tag ?
Hello, Is it possible to fill the textarea content when using the text_area function ? Why there is 2 , + or - similar class : FormHelper and FormTagHelper ?
2005 Dec 21
8
text_area
Hi I''d like to know how to add default text text area using the function text_area. I ''ve tried using value = "....." to do this but with no luck. Could some one please answer my simple question? Thanks. Dan. -- Posted via http://www.ruby-forum.com/.
2006 Sep 15
7
OT: TinyMCE in Rails
...be. In my view at the top I have this init calls <script type="text/javascript" > tinyMCE.init({ mode: "textareas", theme: ''advanced'', theme_advanced_toolbar_location: ''top'' }); </script> Then in my form: <%= text_area ''position'', ''full_description'' , :cols => "50", :rows => "15" %> I''ve had the cols set to 200 and the rows to 600 and it hasn''t changed. Anyone know how to get this working right or perhaps any issues ? I''...
2006 Aug 02
7
form_for not working with Markaby
I''m playing around with Markaby and I decided to write a little blog app. I''m running into issues with forms however. If I use form_for the output of the form gets swallowed. For example: form_for :article, @article do |f| f.text_field :title f.check_box :published f.text_area :description f.text_field :pub_date f.text_area :content end gets rendered as an empty form tag. The above code of course works fine in an rhtml file (with appropriate erb tags). Oddly form_tag works fine in Markaby: form_tag :action => ''create'' text_field ''art...
2006 Apr 06
2
text_area and :value
I''m trying to use the text_area() method and would like to populate the text block with initial text. According to this: http://dev.rubyonrails.org/ticket/3752 there was a fix put in place, but I''m ont sure how to integrate this. How do I get the :value parameter to show up within the textbloc instead of the html att...
2007 Aug 17
3
Clear text_area value onfocus
Hi! I have a "text_area" that looks like this... <%= text_area ''business'', ''otherDigitalDesc'', "cols" => 25, "rows" => 4, "value" => "Enter Description if Yes..." %> Right now, if I submit it, it adds "Enter Description...
2006 Jan 22
3
Formatting input/output of a text box
Hello, What''s the best way to handle formating of a text_area? I have a text_area in my rails app where people can leave comments and I''d like to automatically convert the line breaks into <br /> tags, or just simply wrap a whole paragraph in <p></p> tags. I''m currently doing the following in my comments controller to inser...
2013 Mar 13
2
Form_for text_area
Hi all, Since I am new to ruby on rails. I''m stuck in some minor issue. I am using form_for in my view. In that I am using a text text. So, My question is, how to add a default value to the text_area along with the row and col values. Please help me out ASAP. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39...
2008 Jan 22
4
newlines in text_area
Hi @ all I would like to enter a text with a text_area into the database. It runs excellent. But when I want to show the entered text in the show view, all newlines (paragraphs) are deleted and the text is only one block. How can I save the returns (newlines) too? Thanks for helping!! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~-...
2007 Sep 27
2
text_area empty_clob()
Anyone know why my text_area field is being prefilled with "empty_clob()" instead of simply being empty like I would expect? I''m using Oracle 10g so I suspect it''s coming from the oci8 driver somehow? Here''s the code: <% form_for :user do |f| -%> <%= f.text_area :notes, :rows =&...
2006 Apr 12
4
Binding Text Field/Areas to Array?
Hi, If I have @answers in my Controller, which is an array of Answer model objects which don''t exist in the DB yet... How do I bind a text_area helper in the View to each Answer? (I''m pre-filling some of the Answers with other data people need to verify before submitting and will insert on POST.) I''ve been able to get the textareas to render but not with the Answer values bound. I''ve tried David''s...
2008 Apr 06
10
about the form_for ..
...lect_tag? question tow: i have a A model,it has one B such as: class A< ActiveRecord::Base belongs_to :B when i use the form_for tag,how can i output the variable name?like this: <%form_for :a,@a,:url=>{:controller=>"a",:action=>"save"} do |f|%> <%=f.text_area "b[name]"%> ........ <%end%> it doesnt work. thanks for your help! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyo...
2006 Jun 25
0
Colouring ''text_area'' plus scrollbar on view
Hi, I am trying to colour a text_area input field, including the scrollbar (2-dimensional field). I was able to change the colour of a button associated with a ''submit_tag'' by adding a :class and defining properties in my CSS file. Is something similar required? Thanks, Lee. _______________________________...
2008 Mar 03
1
How change text_area form helper into rich text entry area/control?
Do you know how to render a rich text input area (with HTML formatting buttons (bold, italics, etc., available?) In RoR I''m hoping this is very easy to pull off?!? <%= text_area ''blogentry'', ''entry'' %></p> TO <%= rich_text_area ''blogentry'', ''entry'' %></p> ??? Haven''t found anything helpful yet with multiple Google searches. Thanks in advance, Pete --~--~---------~--~-...
2008 Jul 28
0
text_area value
Hey, I have existing threads with two fields: title and text. When a user clicks "edit", I say, in the new thread form: <% form.text_area :text, :value => params[:text] %> params[:text] = the text in the thread which the user wants to edit. It works fine most of the time, but if I made a new thread and had linebreaks, clicking edit fails. New form: text: sdfjksdfj sdfjsdf sdfsdf Those linebreaks are causing some trouble! Wh...
2006 Jul 04
1
Smart html output for an object?
...focusing on using a case/when control structure, so let me start by showing you some code... I was trying to use this following code as a helper method, def print_question(question) @question = question case @question.question_type.code when ''free_response'' text_area(@question, :response, :id => "response_" + question.id.to_s, :cols => 40, :rows => 10) else "boo!" end end this is just mock up code, I can''t get this to work. Something about text_area() needing variables of a certain scope. I can'&...
2007 Aug 02
0
Overridding readonly attribute in custom form builder
Hi, I''ve created a custom form builder and overridden text_area so that all fields are readonly. There are a few instances that I would want an editable text_area, so I have tried to create an editable_text_area method. I have tried passing text_area(method, options.merge(:readonly=>false)) to the method, but it doesn''t work: the area is still n...
2006 Apr 26
7
Not updating
...end end Awnser.rhtml <h1>Awnsering question</h1> <%= start_form_tag :action => ''update'', :id => @question %> <p><%= @question.question %></p> <p><label for="questions_awnser">Awnser</label><br/> <%= text_area ''questions'', ''awnser'' %></p> <%= submit_tag ''Awnser'' %> <%= end_form_tag %> It flashes that it works but it really dosn''t change the question.awnser -- Posted via http://www.ruby-forum.com/.
2006 Aug 13
3
why do text_fields appear smaller in IE than other browsers?
...is smaller than a text_field :size=>20 on Internet Explorer. They are the same on Firefox and Safari. makes my login box look silly. the same can be seen on the login screen for this forum. the password box is a little shorter on IE6. more annoying however is I have a view with two large text_areas sided-by-side and a text_field above them both spanning the full width of both text_areas. If I size everything to look nice on Safari and Firefox, then on IE it looks as though the text_field is too small, only making it about 2/3rds of the way across. Its not a major problem, but saying th...
2005 Feb 15
5
date_select where to add "class"=>"something"
..."class" => "testo" ) %> <%= date_select("costo", "data", :use_month_numbers => true, :order => [:day, :month, :year], "class" => "testo" ) %> but nothing is added to the html code... This way usually works with: <%= text_area("costo","descrizione","class" => "testo") %> Thanks for the suggestions...