similar to: Re: Octopuses was Re: Let's call a spade a spade., [was Re: Pluralized Controller Names?]

Displaying 20 results from an estimated 5000 matches similar to: "Re: Octopuses was Re: Let's call a spade a spade., [was Re: Pluralized Controller Names?]"

2005 Aug 08
68
Pluralized Controller Names?
If I do: script/generate controller Photo I get a controller named photo_controller. OTOH, if I do: script/generate scaffold Photo I get a controller named photos_controller. (Note that the controller name is pluralized). I realize that I''m specifying the controller name explicitly in the first case, but it seems odd to me that the scaffold command generates a pluralized
2005 Mar 08
1
Pluralization rules?
Is there documentation somewhere on how RoR handles pluralization? I''m finding it head-scratching/table-thumping. I''m playing with converting an old PHP app to RoR. I used to have a table called "status_code" which was referenced by column "status". I converted the "status" column to "status_id" and the table to "statuses",
2006 Mar 17
1
edge - scaffolds now pluralized?
Are my eyes going buggy, or did something recently change in Edge Rails so that now scaffolds are generated with pluralized controller/ helper/etc names? I peeked at the code in railties/lib/rails_generator/generators/components/scaffold/ scaffold_generator.rb around line 50, and it looks like there was a change there recently so that it now defaults to pluralized names. So why was this
2006 May 12
2
Pluralization of non-noun names
People, I have an insurance company client and for the last eleven years I have wanted to completely redevelop their system from scratch. However, the boss has never been interested in hiring a team to develop the new system (partly because of the cost and partly because of some famous and expensive development failures in the industry) and has always insisted on incremental development of the
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
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
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
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 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
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
2013 May 29
0
Lloyd Segal
Lloyd Segal Real Estate News 15-year mortgage rate hits record low Mortgage rates dropped again this week, with the 15-year fixed-rate loan hitting a record low, according to a report from mortgage financier Freddie Mac. The 15-year fixed rate fell to 2.56% from 2.61%. A year ago, it stood at 3.07. The most popular mortgage, the 30-year fixed rate, came in at 3.35%, a drop of 0.05 percentage
2003 Apr 15
0
FW: Academic Software Discounts
Macromedia Studio MX at 76% OFF, Adobe Photoshop at 56% OFF, Office XP Standard at 71% OFF, Adobe Design Collection at 62% OFF Microsoft Visual Studio.NET at 91% OFF, FREE SHIPPING THROUGH APRIL 30, 2003 WITH BELOW CODE. FREE SHIPPING CODE (Ground Only): DKG402 YOU MUST PLACE ORDER BY TELEPHONE AND YOU MUST TELL OUR OPERATOR THAT YOU HAVE A FREE SHIPPING CODE. Dear Students, Teachers,
2006 May 22
3
rails naming convention for model: community
Hello, How does Rails deal with the pluralization of community. I have "community" as my model name. Will Rails automatically look for a table name "communities" or do I have to name the table "communitys"? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL:
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
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,
2006 Aug 08
2
Problem with plurals, migrations?
Hi, Ruby 1.8.4 Rails 1.1.4 Windows XP Pro I''m hitting an issue with migrations that I suspect relates to pluralization. Here''s the migration: class Hardware < ActiveRecord::Migration def self.up create_table :hardware do |h| h.column :vendor, :string, :limit => 32 h.column :model, :string, :limit => 32 end
2009 Jan 12
1
re tail case-pack ordering problem - can R help?
I'm a programmer, not a mathmatician. I heard about R, and I'm wondering if anyone can tell me if there is an existing R function that can help with a problem we're currently trying to find an algorithm for. If R is not the answer, but you can recommend a known algorithm, that would help a lot! I'm on a project in a retail corporation, working on a program to assist retail buyers
2018 Oct 28
2
IBM buying RedHat
On Sun, Oct 28, 2018 at 03:54:06PM -0600, Zube wrote: > > Le 28/10/2018 ? 22:10, Albert McCann a ?crit?: > > > > Red Hat would stay as a distinct entity inside IBM. IBM has also > > contributed to Free software, and especially Linux kernel. > > I don't know how bad it is and the implications for CentOS... > > That old war wound started aching again. >
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
2015 Apr 16
4
ClamAV reports a trojan
On Thu, April 16, 2015 10:09 am, Les Mikesell wrote: > On Thu, Apr 16, 2015 at 10:01 AM, James B. Byrne <byrnejb at harte-lyne.ca> wrote: >> This morning I discovered this in my clamav report from one of our imap servers: >> /usr/share/nmap/scripts/irc-unrealircd-backdoor.nse: >> Unix.Trojan.MSShellcode-21 FOUND >> I have looked at this script and it appears to be