My latest discovery on this issue is that it''s particular to one of my apps. I tried text_area in another app (running the same version of rails) and it worked fine , "rows" => 100, "cols" => 200. How bizarre that this one app would break something in the form helper. Any ideas out there on where even to look ? TIA Stuart On 9/16/06, Dark Ambient <sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I thought I''d try removing tinymce and seeing what I get just defining > a regular text_area. > Well it''s not sizing the rows and cols correctly with just a plain old > rails text_area. Very puzzling as I''ve tried various combinations: > > <%= text_area ''position'', ''full_description'', :cols => 300, :rows => 900 %> > > Anyone ? > > Stuart > On 9/15/06, Dark Ambient <sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Bummer, it didn''t help! :(. It sounded hopeful. I even changed the > > rows cols back to symbols but alas no difference. I''m having a tough > > time with these editors. Had dumped fck the other day for this. > > > > Stuart > > > > On 9/15/06, Bill Walton <bill.walton-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote: > > > > > > Hi Stuart, > > > > > > Dark Ambient wrote: > > > > > > > > I''m having a problem getting the text area the size I want it to be. > > > > <snip non-relevant js> > > > > > > > Then in my form: > > > > > > > > <%= text_area ''position'', ''full_description'' , :cols => "50", :rows => > > > > "15" %> > > > > > > Get rid of the quotes around the values. The api documentation for > > > text_area gives the following example (with substitutions to use your > > > object/method/values): > > > > > > text_area("position", "full_description", "cols" => 50, "rows" => 15)Your > > > substitution of symbols for strings won''t give you a problem, but putting > > > quotes on the values will. > > > > > > hth, > > > Bill > > > > > > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Dark Ambient
2006-Sep-16 13:22 UTC
Re: Text_area WAS: Re: [Rails] Re: OT: TinyMCE in Rails
Wow, accidentally discovered my text_area problems. In my CSS I had:
textarea {
width: 300px;
height: 100px;
}
Which was overiding any settings used in the form helper.
My bad
Stuart
On 9/16/06, Dark Ambient
<sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> My latest discovery on this issue is that it''s particular to one
of my
> apps. I tried text_area in another app (running the same version of
> rails) and it worked fine , "rows" => 100, "cols"
=> 200.
>
> How bizarre that this one app would break something in the form
> helper. Any ideas out there on where even to look ?
>
> TIA
> Stuart
>
> On 9/16/06, Dark Ambient
<sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > I thought I''d try removing tinymce and seeing what I get just
defining
> > a regular text_area.
> > Well it''s not sizing the rows and cols correctly with just a
plain old
> > rails text_area. Very puzzling as I''ve tried various
combinations:
> >
> > <%= text_area ''position'',
''full_description'', :cols => 300, :rows => 900 %>
> >
> > Anyone ?
> >
> > Stuart
> > On 9/15/06, Dark Ambient
<sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > > Bummer, it didn''t help! :(. It sounded hopeful. I even
changed the
> > > rows cols back to symbols but alas no difference. I''m
having a tough
> > > time with these editors. Had dumped fck the other day for this.
> > >
> > > Stuart
> > >
> > > On 9/15/06, Bill Walton
<bill.walton-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote:
> > > >
> > > > Hi Stuart,
> > > >
> > > > Dark Ambient wrote:
> > > > >
> > > > > I''m having a problem getting the text area the
size I want it to be.
> > > > > <snip non-relevant js>
> > > >
> > > > > Then in my form:
> > > > >
> > > > > <%= text_area ''position'',
''full_description'' , :cols => "50", :rows =>
> > > > > "15" %>
> > > >
> > > > Get rid of the quotes around the values. The api
documentation for
> > > > text_area gives the following example (with substitutions to
use your
> > > > object/method/values):
> > > >
> > > > text_area("position",
"full_description", "cols" => 50, "rows" =>
15)Your
> > > > substitution of symbols for strings won''t give you
a problem, but putting
> > > > quotes on the values will.
> > > >
> > > > hth,
> > > > Bill
> > > >
> > > >
> > > > > > > >
> > > >
> > >
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---