Displaying 4 results from an estimated 4 matches for "textilize_without_paragraph".
2006 Jun 23
4
RedCloth
Help me!!!Lol
I''ve been working with RedCloth but it''s runed my layout because it put
the <p> and </p> is there a way to remove this without gsubing it up or
if I do what the prettiest I can make it?
--
Posted via http://www.ruby-forum.com/.
2005 Jan 28
16
primary_key_prefix_type, support for non-integer primary keys
Hello!
I''m just starting out with Rails--and Ruby itself for that matter--and
have a couple of questions regarding primary_key_prefix_type and
non-integer primary keys.
I see in the ActiveRecord documentation [1] that by default the primary
key of a table "foo" is expected to be "id", though
primary_key_prefix_type this can be changed to :table_name or
2006 May 22
0
Bug in text_helper.rb
I think there''s a logical mistake in ActionViews text_helper.rb. The
TextHelper modul defines the methods textilize and
textilize_without_paragraph in a begin rescue block that calls
require_library_or_gem "redcloth".
The problem is, that this call will always fail and the methods will
never be defined when you install RedCloth as a plugin under
vendor/plugins.
That is because text_helper.rb is loaded before
<YOURAPP>/vendo...
2006 Jan 27
10
html special characters. h() failure.
I was trying to convert a some text with the (r) character it so it
replaced character \xAE with ®
h(@item.description) didn''t do anything. I need to use
@item.description.grep(/\xAE/,''®'') for it to work.
I think the h() function should be able to do all the codes that are
available.
Regards Neil.