Displaying 20 results from an estimated 181 matches for "text_areas".
Did you mean:
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
I''m having a problem getting the text area the size I want it to 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
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
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 attributes?
--
Posted via http://www.ruby-forum.com/.
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 if Yes" into the
database. It would be nice to not have it enter
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 insert line breaks when the user
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
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/.
--~--~---------~--~----~------------~-------~--~----~
You received
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 => 2, :cols => 32 %>
<% end -%>
It should be just an empty
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
2008 Apr 06
10
about the form_for ..
question one:
is there any select box tag for form_for?
now,perhaps i just can use the select or select_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|%>
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.
___________________________________________________________
All new Yahoo! Mail "The
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
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
2006 Jul 04
1
Smart html output for an object?
Hi, I''m trying to make it so that an object can be easily printed into
the html format I want. I''ve been 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
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 not editable. Any
2006 Apr 26
7
Not updating
I copied the scaffolding edit and update and made it like this,
Note: awnser is edit.
Admin_contoller.rb
def awnser
@question = Question.find(params[:id])
end
def update
@question = Question.find(params[:id])
if @question.update_attributes(params[:question])
flash[:notice] = ''Question was successfully updated.''
redirect_to :action => ''list''
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 tha...
2005 Feb 15
5
date_select where to add "class"=>"something"
Hi,
I''ve looked on api.rubyonrails.org but I''ve not found how to add to a
date_select(object, method, options = {}) a class option to set the
class of all the select tags.
I''ve tried using "class" => "myclass" in thoose ways:
<%= date_select("costo", "data", "class" => "testo" ) %>
<%=