similar to: #10615 : inflection bug that affects classify method

Displaying 20 results from an estimated 10000 matches similar to: "#10615 : inflection bug that affects classify method"

2010 Nov 22
0
Rails 3 - Custom Inflection Not Working?
I''m using Rails (3.0.3) and have the following code in initializers/inflections.rb ActiveSupport::Inflector.inflections do |inflect| inflect.irregular(''nursery'', ''nurseries'') end From the console I''m getting: "nursery".pluralize => "nurseries" "nurseries".singularize => "nurseries" I should be
2011 Mar 01
11
Did rails or shoulda go insane on the inflection of 'taxes'?
I have a model ''xp_jurisdiction_taxes'' which rails (3) created correctly. Another model ''xp_jurisdiction_states'' has many :xp_jurisdiction_taxes. In my spec I am using a shoulda helper to test the association but get the following error. BTW, greped the whole project just in case and the string ''taxi'' exists nowhere. 1)
2009 Mar 13
2
ruby capitalizing singular version of route
Hi All, I''ve searched on this topic and can''t seem to find anyone results saying others have had the same problem, so hope someone here can help. if in routes, I map addresses: map.resources :addresses If get the following routes: addresses new_Address edit_Address Note that the singular routes (new, edit) are capitalized. to prove the issue, in console, I can type: >>
2006 Jan 09
4
Lack of support of Stored Procedures is a Show Stopper
In my opinion most mature/complex client/server or n-tier applications using SQL Server, Oracle, or MySQL, use stored procedures. Without support (except by use of the execute method) for Stored Procedures, Ruby on Rails or MonoRail is a Show Stopper. We are unable to effectively use Ruby On Rails as all access to the db is using Stored Procedures. This does not mean that we are unable to use
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
2015 Jun 23
2
Server Member
Hi guys, I have a server in Debian 8 with Samba 4.2.2 compiled about sources. This server is my project for small busines and run all network funcitons. The functions like AD, DNS, DHCP, NTP, File Server, Print Server, Openfire, OCS, GLPI, Squid and Squidguard are work integrated on Domain perfectly. My problem is that some clients need run a windows aplication so I put a windows server as member
2012 Jul 19
20
Rails' inflections are messy
Yesterday, I opened a GitHub Issue<https://github.com/rails/rails/pull/7071> about moving Rails inflections to an initializer. The idea wasn''t received well, understandably, as generating a large initializer with new Rails apps is pretty unappealing. However, the core members seemed open to the discussion of alternatives continuing here. For those of you not in the know,
2005 Oct 16
2
Looking for advanced consultant services
Hi, I have a meeting with an important customer in a couple of days and I am aware that most of their questions are going to be related about scability of Asterisk. We want to propose this customer to integrate Asterisk with SER, but I have a loot of complex doubts that I would like to known before this meeting. I would like to contact with a busines that has experience with large
2005 Jul 06
1
Singularize bug?
I have a table called rdf_classes and when I call the list page it throws an error saying it can''t load ''RdfClas''. I poked around and found the "singularize" method in inflector.rb. I put a statement in there and it is being called to singularize "RdfClass" and returns "RdfClas". I''ve added: [/(ss)$/i, ''\1''], #
2007 Dec 12
3
Problem running examples with spec_server
Hello, Running RSpec without DRB works fine. However, "spec -X" runs without error but provides no output at all, even though the DRB spec_server seems to be fine. Has anyone got some suggestions as to why and how to fix? RSpec: 1-1-0RC1 build time 20071212145122 RSpec on Rails: Build time 20071212145122 Ruby: 1.8.6 Rails: 2-0-1 Win XP SP 2 Thanks very much, Dave -------------- next
2007 Oct 24
13
Ryan Bates' Multi-object Forms and the date_select
I think I''ve found a bug with Edge. I''m trying out Ryan Bates'' multi-object form technique shown in one of his Rails-casts (railscasts.com/episodes/75). If you use a fields_for similar to that shown (here: http://pastie.caboo.se/110480), you get a Server Error 500: ------ Status: 500 Internal Server Error Conflicting types for parameter containers. Expected an
2007 Apr 04
2
[PLUGIN] ArPaginator - Allows you to easily paginate over any existing AR queries.
The built-in Rails pagination is fairly limited...you pass in the model name, and optionally some conditions, and it generates a paginated query for you. This gets to be very bad if you''ve got any custom queries. class Company < ActiveRecord::Base def complete_videos Video.find :all, :conditions => "company_id=#{id} AND status=''complete''", :order
2006 Jan 19
4
Using RoR pluralization rules
Hello, RoR seems to be aware of plurals like category=>categories etc..I Want to be able to use this in my application to relate some keywords.Is it possible ?or does RoR itself use some ruby library? Thanks Vivek -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060119/d5660663/attachment.html
2009 Mar 28
1
Find inflection points using smooth.spline
Is there any way to identify or infer the inflection points in a smooth spline object? I am doing a comparison of various methods of time-series analysis (polynomial regression, spline smoothing, recursive partitioning) and I am specifically interested in obtaining the julian dates associated with the inflection points inferred by the various models. Tyler e.g.
2010 Apr 26
3
Identifying breakpoints/inflection points?
Hello! I have a dataset with the following two vectors: year<-c(1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009)
2004 Jul 01
2
Inflection Points
Hi! Some weeks ago I discovered R. Now, I have a somewhat complicated task and am not sure whether R is the right tool to solve it. I got data of several series or measurements where I have to find the two inflection points. I did a linear regression (with ^2 and ^3 arguments), the problem there was that I had to look only at a very narrow band of measurement in order to get the
2011 Dec 01
2
how to get inflection point in binomial glm
Dear All, I have a binomial response with one continuous predictor (d) and one factor (g) (8 levels dummy-coded). glm(resp~d*g, data, family=binomial) Y=b0+b1*X1+b2*X2 ... b7*X7 how can I get the inflection point per group, e.g., P(d)=.5 I would be grateful for any help. Thanks in advance, Ren?
2003 Apr 30
1
How to calculate the x to assymptotic value and curve inflection .
Hi, I have this non-linear function: y=115.251 - 118.69 * exp(-0.123517*x) I try to discovery the x value for the assyntoptic value of y and the x value where the behavior of curve change, the inflection point. How to make this? Is poss?ble to make this on R? Thanks Ronaldo -- O Flamengo e o Bangu terminaram o jogo em 0 x 0. Quem fez o gol? A Volkswagen -- | // | \\
2006 Sep 28
1
[Newbie] Trying to use Inflections in a non active record class
Hi Sorry if this is too silly to ask. I did RTFM and didn''t find anything obvious. I have a helper class for my controller which needs to singularize words. I need to access methods in the ActiveSupport/CoreExtensions/String/Inflections class. Doing a require ''ActiveSupport/CoreExtensions/String/Inflections'' fails. How do I add this specific class to a helper class
2008 Mar 13
22
Specifing methods in a steps_for block
Hey list, I''m refactoring some much-used functionality into a common_steps step group. Methods like this are in there: steps_for :common do Given "a number of existing $types?" do |type| @initial_item_count = type.singularize.classify.constantize.count end When "the user adds an invalid $type" do |type| post