Displaying 15 results from an estimated 15 matches for "auto_link".
2005 Dec 16
0
auto_link fails to handle tilda''s (~) and markdown fails to handle acute accent (`)
Hi There,
So I was just having some trouble with auto_link and markdown.
Specfically auto_link was failing to handle urls with tildas in them (~)
e.g.
http://www.hawaii.edu/~name/index.html
and markdown couldn''t handle an acute accent (`) e.g.
Hawai`i
It seems that acute accents (or backticks) in Markdown signify code
segments, and it seems t...
2010 Sep 23
1
Patch to fix docs for auto_link
Hi I''ve contributed a patch which fixes an incorrect example in the
documentation for auto_link in ActionView::Helpers::TextHelper.
The example uses truncate in the old style of tuncate(text, length)
which no longer works, so I''ve patched it to use the new
tuncate(text, :length => n) style.
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5694-change-truncate-...
2006 Jan 10
0
auto_link generating error (nil.gsub) in functional test
Hi everyone,
When running tests, I get this error for running auto_link on a set of
column data:
test_list(PersonnelControllerTest):
ActionView::TemplateError: You have a nil object when you didn''t expect it!
The error occured while evaluating nil.gsub
On line #28 of app/views/personnel/list.rhtml
25: <tr valign="top" class="<%...
2006 Aug 15
0
BlueCloth throws exceptions! Be careful! (was: auto_link fails to handle tilda''s (~) and markdown fails to handle acute accent (`))
On 12/15/05, Sam Joseph <sam@neurogrid.com> wrote:
> markdown couldn''t handle an acute accent (`) e.g.
>
> Hawai`i
>
> It seems that acute accents (or backticks) in Markdown signify code
> segments, and it seems there''s an open ticket for this:
>
> http://www.deveiate.org/projects/BlueCloth/ticket/24
I would just like to bring this to
2006 Jan 02
0
problem with ruby gem activate when trying to run actionpack tests
Hi There,
so I worked out what I should be doing to try and contribute code to
rails (I''m currently working on patches for collection_select and
auto_link).
I''m following the instructions here:
http://dev.rubyonrails.org/
and have checked out actionpack. Trying to run the actionpack tests I
get this error:
D:\User\Code\ruby\actionpack\test>ruby controller/base_test.rb
d:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:144:in `activate'...
2008 Jul 26
4
simple_format, (long) urls, and wrapping
I''m using simple_format to format and display posted content from
users. This content sometimes has urls in it.
The problem I''m having is that if the urls are long enough to wrap,
they do, but the url gets split with a <br> tag. Then, if the user
clicks on the link, only the first, non-wrapped part of the link gets
posted to the browser... and that''s an invalid
2006 Jun 04
5
Embedding link_to''s within text fetched from database.
Hi,
I have the following problem that I can''t seem to figure out. I want to
able to fetch some text from my database record in my controller, and then
add two links within the text and then send that back to the view to get
rendered so that the two links appear as links and when clicked on, they''d
basically call the corresponding action for the link. Would anybody know
how to
2006 Mar 30
2
How do I format text before saving it?
I tried to use a before_save and use simple_format, it returns and
undefined method error. Can I even use these methods within a model? I
tried to use auto_link and it failed too. What am I doing wrong?
Furthermore, would it be recommended I format text before saving it to
the database? Advantages or disadvantages?
--
Posted via http://www.ruby-forum.com/.
2006 Feb 10
4
RegEx Question
Hi,
This is more of a Ruby question than Rails. I want to autolink url''s in a given
string. I''m not great with regular expressions and I wandered if anybody has an
example. Thanks.
2006 Mar 03
2
strip html
say i wanted to allow only certain html characters from my user
submissions, and strip everything else. does rails have a built-in for
this?
2006 May 02
6
Is there a link_to ''external url''?
I''ve checked the Rails documentation but find no mention of link_to
''external url'' or equivalent. Does rails have a built in method to do
this?
thanks
-Lindsay
--
Posted via http://www.ruby-forum.com/.
2006 Aug 14
3
New line char in a text area field on DISPLAY
I have a text_area to accept upto 1000 chars, which is stored as a blob
in mysql. When I try to display the saved data, I dont see the new line
characters - however I could see the newline characters in EDIT MODE. So
my newline char is lost during displaying. Any ideas how to fix it.
thanks
thila
--
Posted via http://www.ruby-forum.com/.
2006 Aug 10
3
Want to use a view helper (TextHelper) in a model class
I have a model that deals with HTML and I want to use the
text_helper.sanitize method to strip the HTML of Javascript.
However, it doesn''t appear that I can get easy access to the text_helper
methods from within a model.
Anyone have any suggestions for how to do this?
In general, I think that there are some ActionView helpers which are
generic enough to want to use in a model class.
2006 Jun 14
7
[newbie] formatting web-link in list.rhtml
Perhaps I need a break, but I can''t find the answer for this simple
question.
I have a database which also contains an internet address. I want to
show this address with a link (wich is named link).
When I do;
<%= link_to ''link'', camping.website %> I get a clickable link. But the
destination is http://www.my_own_homepage/www.homepage.nl (what I want
is of
2006 Sep 26
12
resource_feeder feedback
Let me apologize in advance as this is a topic that I feel passionate
and opinionated about. If I''m coming on too strong, please forgive me.
=== Be opinionated===
My first piece of advice is simple: be opinionated. Change the method
name to simply <feed_for>. Have it default to doing the right thing.
Perhaps give an option to change the default feed format, but default to