Displaying 20 results from an estimated 6000 matches similar to: "meta is not a plural of metum"
2009 Oct 02
2
Plural version of the model detected, using singularized version. Override with --force-plural.
what is the proper way to make this work? --force-plural doesn''t seem
to change the results. this only seems to happen when you choose
words that the plural and singular is the same word.
script/generate scaffold equipment name:string description:text
warning Plural version of the model detected, using singularized
version. Override with --force-plural.
results in the following
2013 May 03
0
Moving plural detection and --force-plural option to models generator
Hi all,
I talked to Aaron briefly about this at RailsConf, but I just wanted to
bring this up here before I start working on it in case anyone objects.
I will be looking into moving the "Plural version of the model detected,
using singularized version. Override with --force-plural." warning and the
associated flag into the model generators. Currently this is only in the
resource (and
2006 May 09
0
plural names such as countries
Hi,
I found out that Rad Rails names could be properly made plural, such as "country" = "countries" not "countrys".
.
I have a database that contained one table named "countrys". I pluralized the name by adding an "s" as "countrys".I ran the Rad Rails generator and created a "controller" that was named "country
2009 Jan 14
0
Edit method problem with a plural-named model
Hi, I recently made a model called ''news''. I realize that it''s plural
and was gonna cause some problems, but I got the routing all down fine
with:
map.resources :news, :singular => :news_article
everything works fine except the EDIT method. it gives me this error:
You have a nil object when you didn''t expect it!
The error occurred while evaluating
2006 Mar 28
2
plural to singular blunder
I just got this error:
uninitialized constant PriceCurf
After much head scratching I remembered the Rails plural to singular
mapping rules. My table is price_curves, my object is PriceCurve ...
whereas I am guessing Rails thinks the singular ought to br PriceCurf
?!
I''m sure there is a simple way around this linguistic blunder that
doesn''t involve the use of pigeon English.
2006 Jul 18
2
Scaffold a Plural table w/ No Pluralization in environment
Hi guys,
I have a situation here. I have my project set to no pluralization due
to legacy tables in environment.rb. Now, I have some new tables which
I''m starting to pluralize. When I do a generate a scaffold to this new
table:
script/generate scaffold my_tables table
it seems to work out fine for certain sections like
http://mysite.com/railsapp/new (which also inserts properly to
2015 Apr 17
0
Plurals in English (was Re: ClamAV reports a trojan)
[OT ALERT]
On 17/04/15 02:28, Valeri Galtsev wrote:
> clamav is a scanner that is designed to detect viruses (virii I should use
> for plural as it is Latin word)
I believe this 'rule' in English is misunderstood by many and as a
general rule of thumb...
tl;dr:
Words from Old English that came into modern English, use 'Old English'
pluralisation: eg, sheep, fish etc.
words
2015 Apr 17
2
Plurals in English (was Re: ClamAV reports a trojan)
On Thu, April 16, 2015 8:59 pm, Peter Lawler wrote:
> [OT ALERT]
>
> On 17/04/15 02:28, Valeri Galtsev wrote:
>
>> clamav is a scanner that is designed to detect viruses (virii I should
>> use
>> for plural as it is Latin word)
> I believe this 'rule' in English is misunderstood by many and as a
> general rule of thumb...
> tl;dr:
> Words from Old
2006 Jan 09
2
Pluralizations
Hi, I''m new to Ruby and Rails, and I''m running Ruby 1.8.4 with Rails 1.0
on Ubuntu 5.10 (breezy).
I wanted to have a model Software, with the table as software (since
''software'' is the plural too). I appreciate one can simply use something
like use_table or whatever (can''t remember the exact command) in the
Model file, but I''d much rather
2006 Aug 01
1
Legacy Pluralized Table Names
I am connecting to a legacy DB that has some names plural and some not.
I have configured:
ActiveRecord::Base.pluralize_table_names = false
now when i make a table that has an s on the end, it truncates the s.
example:
Table name: foo_bars
Rails command: ruby script/generate FooBars
Response (localhost:3000/FooBars): uninitialized constant FooBar
It works fine with non-pluralized
2006 Jun 07
2
script/generate scaffold pluralizes class names
Hi everyone,
I''m a rails & ruby nuby, and this is my first post to the list.
Here''s my environment in case it helps diagnose my problem:
Ruby version
1.8.4 (powerpc-darwin8.6.0)
RubyGems version
0.8.11
Rails version
1.1.2
Active Record version
1.14.2
Action Pack version
1.12.1
Action Web Service version
1.1.2
Action Mailer version
1.2.1
Active Support version
1.3.1
I did
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
2010 Jul 06
1
information reduction-database management question
If you redefine your NAs as below to be detected as some arbitrary large
number, then the code should work through. Any 5's left in your dataset can
be replaced just as easily by NAs again. Not elegant, but effective.
site <- c("s1", "s1", "s1", "s2","s2", "s2")
pref <- c(1, 2, 3, 1, 2, 3)
R1 <- c(NA, NA, 1, NA,NA,NA)
R2
2006 Feb 13
5
Acts_as_taggable pluralize
I am implementing a messaging system, which requires broadcast to group
feature.
Instead of a relatively clunky habtm group structure, I am using tags.
Form a usability standpoint, it would be helpful to avoid redundant
tags. Like, friend vs friends OR client vs. clients.
Is it practical to filter tags, before entry, to avoid duplicate tags
like plural vs. singular?
--
Posted via
2008 Jul 15
1
code reduction (if anyone feels like it)
# I am sure that I could be more efficient than this but how? Thanks in
advance.
#GPS in Decimal Degrees in the form longitude latitude
RM215 <- matrix(c(-82.1461363, 33.5959109), nrow=1)
SC <- matrix(c(-82.025888, 33.606454), nrow=1)
RM202 <- matrix(c(-81.9906723, 33.5027653), nrow=1)
RM198 <- matrix(c(-81.926823, 33.4634678), nrow=1)
HC <- matrix(c(-81.920505, 33.46192), nrow=1)
2006 Apr 12
1
pluralization issue? (taxes/taxis)
Hi all,
Here''s an odd one. I have a "Tax" model which is related via a habtm
relationship to a "Storefront" model. In my view_store rhtml file, I
have the line :
@storefront.taxes.each do |tax|
This line returns the following error:
NameError in Admin#view_store
Showing app/views/admin/view_store.rhtml where line #52 raised:
uninitialized constant Taxis
See
2014 Dec 12
0
Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: 26.
OMG.. how embarassing.. that was my personal reminder E-Mail for x-mas
dinner. Not meant for this list. Please ignore. Shame on me.. *blushing*
LOL.
Am 12.12.2014 um 21:19 schrieb Markus:
> Anna Crepes: Traubenzucker
> + Feldsalat spezielles Dressing (bringt selbst mit?)
>
>
>
> -------- Weitergeleitete Nachricht --------
> Betreff: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: 26.
2014 Dec 12
2
Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: 26.
Anna Crepes: Traubenzucker
+ Feldsalat spezielles Dressing (bringt selbst mit?)
-------- Weitergeleitete Nachricht --------
Betreff: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: Fwd: 26.
Datum: Thu, 11 Dec 2014 15:34:39 +0100
Von: Markus <universe at truemetal.org>
An: universe at truemetal.org
Geschenke Moritz: dunkle Schokolade.
Geschenke Anna: normale Schokolade.
-------- Weitergeleitete
2017 May 12
1
spTransform
Salutations,
Long story short: I need to create an SPDF to superimpose on a Google map.
I have .shp file which has a long list of locations listed in (what I guess
must be) UTM. I need to transform these into lon, lat. My use of
spTransform, however, keeps giving me the wrong results. For what it's
worth, it only seems to be messing up the latitude.
My final line of code looks like this:
2004 Nov 22
0
RT_SIGNAL_* issue - samba 3.0.9
This is part of the log and strace output from samba 3.0.9 running on kernel 2.4.27.
The output from samba 3.0.8 on kernel 2.6.9 looked somewhat similar...
I haven't seen much on the list or ancilliary documentation recently, other than
"it is fixed for samba > 3.0"... Could someone please shed some light on this?
Syslog entries:
Nov 22 22:25:48 toshiba smbd[32209]: