Displaying 20 results from an estimated 2000 matches similar to: "the textilize method"
2006 Mar 25
67
Your Ruby IDE
Just a poll here i am looking for a good IDE for rails and wondering
what you guys use?
features i like in an ide
code highlites
auto code complete
file browser
Currently i am using dreamwever but the code highliting is really bad
its also a pain to set up other doucment types such as .yml data config.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 25
2
Textilize problems with line breaks
I''m having a problem formatting some text. I have a textarea that I
input my text into, which will then be put into an e-mail and sent out.
The problem I am having is when there is a single line break.
Multiple line breaks work fine (hitting enter twice), but single line
breaks don''t seem to work properly.
Take the following input:
Line1.
Line2.
Line3.
Line4.
Using
2006 Mar 25
1
Re: Rails Digest, Vol 18, Issue 656
Here''s an alternative in-depth treatment on setting upo rails on Debian
(Ubuntu, Kubuntu, ... ), may be interesting to follow through in more detail
for some:
The Perfect Rails/debian/lighttpd Stack... (
http://brainspl.at/pages/perfect_vps )
Victor Kane
http://awebfactory.com.ar
On 3/25/06, rails-request@lists.rubyonrails.org <
rails-request@lists.rubyonrails.org> wrote:
>
2005 Dec 24
2
Textilize on ajax update
I''m writing a basic to-do
application. I''m using a form_remote_tag to submit the entry to my
controller, which then returns the entry to be displayed in the table
of to-do items. However, I''d like to be able to "textilize" the entry
without having to reload the page. Is there any way to have my ajax
function textilize the text before displaying it in the list?
2005 Dec 21
8
textilize - redcloth
Hi,
I''m using textilize with redcloth 3.0.4. Everything works best except
that paragraphs are not translated as an HTML paragraph
When I write something like:
*first paragraph*
second paragraph
the output is without paragraph:
*first paragraph*
second paragraph
Any help??? Thanks
Jörg
2006 Mar 10
2
textilize != RedCloth.new ?
For me, textilize(stuff) produces nasty stuff - <br>''s instead of
enclosing <p>''s and some closing <h*>''s are missing. RedCloth.new(stuff)
works fine though. Isn''t textilize supposed to produce the same output?
Or do I need to tweak something?
Joe
--
Posted via http://www.ruby-forum.com/.
2008 Oct 06
2
textilize with --- (3 dashes) removes text
Hi,
using --- (3 dashes) at the end of a string that is textilized,
results in a single hr tag without any text. This seems weird to me.
Am I overlooking something?
>> av = ActionView::Base.new
>> av.textilize("sometext ---")
=> "<hr />"
Cheers,
Jan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2019 May 31
9
[Bug 3017] New: ExitOnForwardFailure=yes doesn't work for local forwards (-L)
https://bugzilla.mindrot.org/show_bug.cgi?id=3017
Bug ID: 3017
Summary: ExitOnForwardFailure=yes doesn't work for local
forwards (-L)
Product: Portable OpenSSH
Version: 7.6p1
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: ssh
2005 May 24
3
textilize/markdown/sanitize for messageboards, oh my!
Hullo, fellow Railsers!
(warning: this isn''t a 100% Rails specific question, but I guess it
very much applies to what a lot of us are currently doing.)
For a project that involves messageboard functionality I''m looking for
a good way of sanitizing user input, so the silly fools, err, my
wonderful users don''t mess things up too much. I''ve played around with
2006 Apr 01
2
Textile headaches
I have the newest version of RedCloth installed (3.0.4). I want the
following output:
<h1>Header</h1>
<p>Some text</p>
This is what I tried but no luck:
irb(main):002:0> require ''rubygems''
=> true
irb(main):004:0> require_gem ''RedCloth''
=> true
irb(main):006:0> RedCloth.new("h1. Header\r\nSome Text").to_html
2006 Mar 06
6
Executing SQL in rails, and the types of the data returned
Hi,
Every once in while I have to run SQL by hand, in my models mostly. But
I''m wondering if there is a better way of doing it than I do. And, I
have a question concerning types of the fields in the result the query
produces.
First, about the types. In a certain model, to get and return the value
of a boolean function, I have to do:
result =
2006 Mar 25
5
Unit test fails on different line the second time it''s run
I''ve got a very peculiar problem with unit tests. First, I clone my
development database with "rake clone_structure_to_test", then I run my
test with "ruby investment_product_score_override_test.rb". It fails on
line 68. Then, every test run after this, fails consistently on line 34.
How is this possible? I don''t use fixtures and I don''t use
2006 Mar 03
4
DB data type enforcement in Active Record
I have a question about how ActiveRecord handles data types.
When I enter text in a text_field (meaning, a field in the GUI) which
belongs to a numeric field in the database, Active Record automaticly
converts it to 0, because that''s what the to_f/to_i method of a string
does. Is it also possible to have Active Record enforce the types, so
that when you enter text for a numeric
2005 Dec 15
3
define_method with parameters
Hi,
I''m trying to write a macro which defines methods. One of these should
have a parameter, but I can''t get that to work. Something like:
define_method("printstuff") do
puts "blabla"
end
works fine. But, how do I use define_method to create something like:
def printstuff(the_stuff)
puts the_stuff
end
Thanks in advance.
2006 Apr 19
6
undefined method `create_table'' for #<LoginController:0x5e60
I am geeting the foolowing error.
undefined method `create_table'' for #<LoginController:0x5e60110>
I wrote the crete action in application controller.
I am coping ther total worng please help me!
class ApplicationController < ActionController::Base
model :cart
model :line_item
before_filter :authorize
def create
# create_table() yields a TableDefinition instance
2006 Apr 25
4
redcloth poblems
Hi, I''m having some problems with redcloth(3.0.4 gem) and textilize.
I have a string:
"h2. hello
_what''s up?_"
which is being textilized as:
<h2>hello<br />
<em>what’s up?</em></h2>
so no paragraph and h2 wrapped all the way.
the input is coming from firefox 1.5.2 on a mac
Anybody got any idea what the problem might be?
--
2006 Apr 27
0
RedCloth + security = h(textilize(@company.description)) ?
Hi,
if i want to use Red Cloth and also sanitize user input for security
do I do the following?
h(textilize(@company.description))
Thanks,
Peter
2006 Apr 08
5
Creating sub actions
Hi,
So finally I have also decided to roll my engines on Rails. But I am
kind of stuck in a situation. I understand that for every model there is
a controller class. This controller class has cirtain set of methods
where each method defines cirtain action to be performed. And each of
this action renders cirtain UI.
[The background]
Now let say I have a object "Car". Apart from
2006 Mar 07
6
Anybody use Red|Blue Cloth?
Does anybody use and prefer Redcloth (or bluecloth, which appears to be
alpha)? Does it affect performance much? Is there a way to get it to
automatically process templates without having to call textilize?
Thanks,
Joe
--
Posted via http://www.ruby-forum.com/.
2006 Apr 08
4
Calling validates_inclusion_of out of default namespace
Hi,
I''m trying to run the "validates_inclusion_of" method in a before_save hook,
because the range is dependant on the related data. But I can''t figure out how
to call it. When calling it normally, it says it can''t find it.
I''ve tried several combinations like
"ActiveRecord::Validations.validates_inclusion_of", but I can''t seem to