Displaying 3 results from an estimated 3 matches for "my_format".
Did you mean:
by_format
2007 Nov 02
0
DATE_FORMATS and functional tests
I have the following in my environments.rb file:
my_formats = { :msc => ''%d %b %Y %I:%M %p'', :msc_short => ''%d %b %Y'' }
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!
(my_formats)
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!
(my_formats)
With this, things like '&...
2008 Jun 04
0
Change simple format
Hi,
I am changed simple format method and added first line code for
replacing spaces
for formatting in this it works but other code means new line
paragraphs are not working?
I want a such method which format all white spaces, new line,
paragraphs.
how it possible in ruby?
example:
def my_format(text)
text.gsub!(/('' '')/, " ")
text.gsub!(/(\r\n|\n|\r)/, "\n") # lets make them newlines
crossplatform
text.gsub!(/\n\n+/, "\n\n") # zap dupes
text.gsub!(/\n\n/, ''</p>\0<p>'') # turn two newlines...
2006 Feb 26
6
Having trouble getting Edge Rails running
Hello,
I''ve been playing with this for hours, and got through a couple glitches
(e.g. updating to Ruby 1.8.4) but this one is well beyond my N00b
skills. When trying to run script/server I get:
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:87:in
`as_load_path'': stack level too deep (SystemStackError)
from