Displaying 20 results from an estimated 6000 matches similar to: "Segmentation fault in inflector.rb"
2006 Sep 05
1
Inflector::pluralize("Agencies")=="Agency" ?
The result of Inflector::pluralize("Agency") is correctly "Agencies",
but pluralize again and it goes back to the singular ?
Is this as expected ?
Also, I have a need to know if a word is singular or plural, and to
convert it to one or the other regardless of it already being so.
Anyway, I''ve written these which seem to work. Do they already exist
somewhere ?
def
2008 Sep 20
2
NameError: uninitialized constant Inflector
I follwed the example here:
http://dekstop.de/weblog/2005/12/rails_inflector_in_ruby_scripts/
#!/usr/bin/ruby
require ''rubygems''
require ''active_support/inflector''
puts Inflector.singularize(''inflections'')
I loaded it into irb and wrote a killer script both of which worked
perfectly for weeks.
Now when I try and run the script or run
2005 Mar 16
1
Is there an opposite of Inflector.Camelize
Or to put it another way, is there a function f, such that
Inflector.f(Inflector.Camelize(x)) = x
?
Enquiring minds need to know.
Adelle.
2008 Mar 06
1
Was "Inflector" moved in Rails 2.0?
Trying to place the following code in my "environment.rb" file is
throwing an "uninitialized constant Inflector (NameError)".
Did they move where these types of customized rules were supposed to be
declared?
******CODE******
Inflector.inflections do |inflect|
inflect.uncountable("media")
end
--
Posted via http://www.ruby-forum.com/.
2010 Apr 12
0
[patch] improve reliability of Inflector.transliterate
Hello,
I''d like to ask for some feedback on a patch I just submitted.
The patch improves the reliability of
ActiveSupport::Inflector.transliterate, which currently does not
handle many characters from Danish, Swedish, Icelandic, Polish and
other European languages.
This is because the current code relies upon UTF-8 decomposition, but
many common characters do not in fact decompose to
2006 Jul 24
0
Inflector stops on the first match
Hi there.
I''m checking the Inflector code there and found, for example, on
singularize:
inflections.singulars.each { |(rule, replacement)| break if
result.gsub!(rule, replacement) }
This means that when it finds the first match, it breaks and stops
processing rules? And what if I need to deal with more that one rule on
the same string? For example, working on the middle and the end
2006 Jul 23
0
[PATCH] Inflector docs minor bug fixes and extra examples
Hi,
I can''t seem to make a new ticket on trac so I''ve attached is a pretty
simple patch for the inflector docs. I found a couple minor bugs in
these docs and added a few extra examples were appropriate.
I haven''t figured out how to unit test docs yet. Hopefully that''s ok :)
Peter
_______________________________________________
Rails-core mailing list
2006 Apr 10
5
Inflections.rb in spanish
Hi:
I have a problem with the plural of fracancia, I got fragancium but in
spanish is fragancia.
I modified inflections in environment.rb
Inflector.inflections do |i|
i.irregular ''fragancia'', ''fragancias''
end
but is ignored.
The solution that I found was comment this inflection on inflections.rb
#inflect.singular(/([ti])a$/i,
2007 Nov 05
1
Segmentation Fault in more_like_this.rb
I''ve been seeing some core dumps coming from ferret_server:
acts_as_ferret/lib/more_like_this.rb:170: [BUG] Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-freebsd6]
I''m running the latest build of ferret (0.11.4-rc5). Line 170 in
more_like_this.rb is:
freq = reader.doc_freq(field_name, word)
which is calling into the ferret C code (if I''m reading this
2011 Jan 06
0
parse.rb:33: [BUG] Segmentation fault ruby 1.8.7 Hpricot
Has anyone had this issue above with hpricot? I cannot seem to find a
solution that works.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2009 Nov 16
0
mysql_adapter.rb:576: [BUG] Segmentation fault
Hello there,
I am encountering segfaults with following:
ruby 1.8.6 (2008-08-11) [i386-mswin32] on windows 7,
rails 2.3.2,
mysql (2.7.1) gem and
MySQL 5.0.87-community-nt-log
Tried with MySQL 5.1 and mysql gem 2.8.1 with no luck.
Loga are showing:
C:\Users\Alex\Documents\IT\ruote-web2>ruby script\server --port=3333
=> Booting Mongrel
=> Rails 2.3.2 application starting on
2013 Jun 27
2
Segmentation fault in methodhelper.rb
Hi chaps,
Since overnight, my puppetmaster has been crashing every now and then
(it has crashed about 5 times this morning). We upgraded to puppet 3.2.2
about a week ago but the problems only started this morning. There was
nothing in the logs so I ran it in debug mode and captured this:
/usr/lib/ruby/site_ruby/1.8/puppet/util/methodhelper.rb:14: [BUG]
Segmentation fault
ruby 1.8.7
2005 May 22
1
ActiveRecord: can not connect to mysql
Hi
I would like to write my first application with Active
Record:
this is my database table:
id PRIMAREY KEY auto_increment
german_name varchar(50)
english_name varchar(50) |
wingspan
this is my code:
=======================
#!/usr/local/bin/ruby -w
require ''rubygems''
require_gem ''activerecord'', ">= 1.10.1"
2012 Mar 12
1
Installing RMySQL -- 64-bit Windows 7
Trying to install RMySQL on 64-bit Windows 7.
Using R-2.14.2 with Rtools214 and MySQL Server 5.5.
Read through several step-by-steps of RMySQL source installation.
Troubleshooting:
- Copied libmysql.dll to R-2.14.2/bin AND R-2.14.2/bin/i386.
- Copied libmysql.dll and libmysql.lib to MySQL Server 5.5\lib\opt.
- Entered MYSQL_HOME=C:\Program Files\MySQL\MySQL Server 5.5 into
Renviron.site,
2005 Oct 25
1
Building Rmysql Source in Windows XP: DLLTOOL can't find DEF file
Hello everyone,
I have a question regarding building the Rmysql packages from source in
Windows.
I am currently using: Windows XP, R-2.2.0, Mysql 3.23
I have installed all of the tools from Installation and Administration
and after following all the instructions to the letter, I compiled the
binary and installed R 2.2.0 from source with no issues. This is the
first time I have compiled the
2010 Jan 26
1
Mongrels Hanging in mysql_adapter.rb
Hi everyone,
I have been trying to solve this problem for quite some time now and I
really don''t have any further clue to investigate.
I am running a mongrel_cluster 1.0.5-2 (mongrel verison : 1.1.5-5) on
a ubuntu box with apache2 2.2.12-1ubuntu2.1
I have 4 different apps on the same box and each app has two mongrel
instances.
After a short period of time ( < 2 hours ) some of the
2014 Feb 17
0
Need help -FATAL: database "catarse_development" does not exist
Hi
i try to run this
rake db:migrate
How i fix this
i get this
[root@localhost catarse]# rake db:migrate
/usr/local/rvm/gems/ruby-1.9.3-p484/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in
`block in require': iconv will be deprecated in the future, use
String#encode instead.
You no longer need to have jasmine.rake in your project, as
it is now automatically
2007 Oct 19
0
RMySQL LoadLibrary failure: Invalid access to memory location.
Hi.
A colleague of mine figured out how to get the RMySQL 0.6 package to load
properly in our environment with MySQL 5.0.45. Every time I tried to load
the RMySQL library in R 2.5.1 I was getting an error message:
LoadLibrary failure: Invalid access to memory location.
We did the following:
First obtain RMySQL 0.5-7, which can be found at
2007 Jun 03
2
Problems compiling RMySQL
Hello, I am trying to compile/Install RMySQL_0.6-0 in
R-2.4.1/2.5.0 under Windows XP MCE, I am using MySQL
5.0.41. I have followed the instructions in the file
INSTALL.win, but I get some errors...
C:\Program Files\R\R-2.4.1>Rcmd build --binary RMySQL
--docs=normal
* checking for file 'RMySQL/DESCRIPTION' ... OK
* preparing 'RMySQL':
* checking DESCRIPTION meta-information
2006 Jul 22
1
How to debug this
Hello,I get this message and I don''t know how to interprete this.I think it has to do with plural tables and singular referencesThanks for any help!Jim======================================================================================uninitialized constant SubjectRAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace