similar to: Patch to fix docs for auto_link

Displaying 20 results from an estimated 1000 matches similar to: "Patch to fix docs 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 there''s an open ticket for this:
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 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
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 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="<%= alternate_rows
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/.
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 May 15
1
Simple: How to use TextHelper in a controller
I''m having trouble succesfully getting access to the ActionView::Helpers::TextHelper.strip_tags method from one of my controllers. If I try to call it directly using ActionView::Helpers::TextHelper.strip_tags I get undefined method `strip_tags'' for ActionView::Helpers::TextHelper:Module What is the preferred way to make ActionView helpers available to a descendant of
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 May 16
3
Best way to handle namespace collisions?
All, I have a little namespace collision here. I am trying to use both RubyfulSoup (an HTML parser - which I highly recommend by the way) and the ActionView::Helpers::TextHelper class. Within the TextHelper class, there''s an attempt to create a new "Tag" object. However, Tag is also defined in the RubyfulSoup gem and it is _this_ Tag class whose initialize method is
2009 Jan 06
1
How to access text helper and url helper methods in model
Hi, I want to access TextHelper and UrlHelper methods in my model so how i am able to access it ? I was included following helper in my model but still it is not working? also for accessing these helper method w need to give external reference? E.g. class Xyz include ActionView::Helpers::TextHelper include ActionView::Helpers::UrlHelper Also
2010 Oct 11
2
my first patch ... what now? simple 1 word change
Hi everyone, I just created my first rails patch. It is a simple textile doc error requiring only a single word to be changed. https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5779 I uploaded a .diff file. Not sure what to do now but lighthouse guide says I should ask on here for someone to take a look. Thank you for your time, fooledbyprimes Peoria, Illinois, USA --
2009 Jan 01
2
Ruby on rails API website suggestion
I would like to request a feature.. like: http://rubyonrails.org/function and it will search inside http://api.rubyonrails.org for the function and show it. Like PHP has.. http://php.net/basename Example: http://rubyonrails.org/truncate and it will points to http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001541 That woul be cool. Thanks
2009 Jan 01
2
Ruby on rails API website suggestion
I would like to request a feature.. like: http://rubyonrails.org/function and it will search inside http://api.rubyonrails.org for the function and show it. Like PHP has.. http://php.net/basename Example: http://rubyonrails.org/truncate and it will points to http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001541 That woul be cool. Thanks
2010 Aug 30
5
Rails 3.0 API doesn't do word-wrap
Hi Guys, I just realize that on the API documentation the code snippet is overflowing off the screen. Is this an intended behavior? Or who should I contact to get this one fixed. You can see the screenshot here: http://skitch.com/sikachu/dw82n/screen-shot-2553-08-30-at-16.24.26 Thanks :) Prem Sichanugrist -- You received this message because you are subscribed to the Google Groups "Ruby
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
2011 Apr 19
1
RSpec/Webrat Checking output is properly escaped
I want to test that the JSON response from a create action is sanitized properly, but rspec or webrat appears to be parsing the output into proper HTML chars instead of escaped characters. I have verified that it escapes properly in the regular browser json response. The relevant RSpec test code is: include ActionView::Helpers::TextHelper include ActionView::Helpers::UrlHelper it
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
2009 Feb 24
2
Displaying line breaks & paragraphs using 'simple_format' ?
Hi there, I need to: 1. STORE a text of the below format in a (MySQL) database (using a ''textarea''), and then 2. RETRIEVE & DISPLAY it in exactly the same format (meaning: keeping all paragraphs/line breaks). The intended text format looks like this: *** Blah blahblah blah blah blahblah blah blah blahblah blah blah blahblah blah, blah blahblah. <- NEW
2007 Nov 29
27
Strip & Sanitize BEFORE saving data
So I''ve googled my brains out, and I see a lot of talk about TextHelper for views, but next to no discussion about cleaning text _before_ it is saved. I figured this had to be asked 4 zillion times, but I''m not finding anything concrete/obvious. Using h is fine as a safety catch, but that alone is not acceptable to me as the means of diffusing the impact of HTML or JS