similar to: Plural version of the model detected, using singularized version. Override with --force-plural.

Displaying 20 results from an estimated 300 matches similar to: "Plural version of the model detected, using singularized version. Override with --force-plural."

2009 Jul 19
9
Equipment_URL Failed to Generate (new_equipment_path)
I''m trying to use new_equipment_path, which creates the appropriate link. But, when trying to evaluate "equipment/new" I get the error below. I''ve included my routes (rake route). Equipment is one of those words that pluralizes to "equipment", so the singular is right (from what I know from this forum. Any help would be appreciated. Error: equipment_url
2008 May 29
2
Resource routing error with the route equipment/new
I''m having an issue with resource routing after running a "ruby script/generate scaffold equipment" command. I did not make any changes to the equipment model/controller/views after running this. The full command I ran (all one line) ... ruby script/generate scaffold equipment name:string description:text contact:text keywords:string created_at:datetime created_by:integer
2018 Mar 04
2
Random effect in GAM (mgcv)
Dear R users, I am using the *mgcv package* to model the ratio of hectares of damaged culture by wild boar in french departments according to some environmental covariates. I used a _Beta distribution_ for the response. For each department, we estimated the damaged in 3 different culture types (??Culture??). Our statistical individual are therefore the department crossed by the culture
2013 Mar 15
1
Reassign values based on multiple conditions
Hi all, I have a simple data frame of three columns - one of numbers (really a categorical variable), one of dates and one of data. Imagine: collar date data 1 01/01/2013 x 2 02/01/2013 y 3 04/01/2013 z 4 04/01/2013 a 5 07/01/2013 b The 'collar' is a GPS collar that's been worn by an animal for a certain amount of time, and then may have been worn by a different animal after
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 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.
2009 Jul 01
1
form_for resources with :singular specified
I fully suspect that I''m missing the point here somewhere so I promise I won''t be offended if you tell me I''m being daft. My application rents equipment ... not equipments. So I have the following: map.resources :equipment, :singular => :equipment_instance class Equipment < ActiveRecord::Base class EquipmentController < ApplicationController The
2018 Mar 04
0
Random effect in GAM (mgcv)
Statistics questions are largely off topic on this list, although they do sometimes intersect R programming issues, which are on topic. However, I believe a statistics list like stats.stackexchange.com might be more suitable for your query. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka
2008 Jun 24
2
Monitor/Restrict network traffic of XEN Client
Hi List, (Long time lecher, first time poster) Not sure if this is the best place to ask, but here goes.. I have a few test Guests on a Xen host, and I would like to start monitoring (and maybe restricting) the network traffic of the guests but not the Host. No I know this can be done with iptables, but I just wondered if anyone knew of a package or how-to to set this up with Xen on CentOS 5 ?
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
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
2005 Nov 08
0
meta is not a plural of metum
although data is a plural of datum but Rails is insisting that it is... as usage of "meta" to refer to ancilliary information is fairly common, I''m sure others are going to run into it Thomas
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 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:
2007 Jun 28
2
form_tag routing error in >= 1.2.2 ?
I have a simple feedback form handled by feedback_controller. For methods I use "new" for the form and "create" to handle the feedback submitted. Routes are simple enough: map.resources :feedback What''s odd is this works fine in Rails 1.2.1: <% form_tag(feedback_path) do -%> But in Rails 1.2.2 and 1.2.3 I get: feedback_url failed to generate from
2006 Feb 11
1
Singularize and Pluralize of the word Faculty
I am have problems with one of my model''s call Faculty... my models name is Faculty so the database should be called faculties right? Has there been documented problems with words ending in ''y''? Thanks for your help. John Kopanas http://www.kopanas.com ===================================================================== http://www.soen.info - source of the
2013 Mar 29
1
Create values based on a table of conditions
Hi R help forum, I have a simple data frame of four columns - one of numbers (really a categorical variable), one of dates and one of data. I have over 500,000 data points to work with, spread over 40 files, each named after a different animal. These are contact data recorded by proximity loggers over two years between the animals of the file name and collars being worn by other animals. The
2007 Mar 18
7
How to get more informations about an association at runtime
Hi all I''m working on a Custom Formbuilder. I want it to create me with a single method call checkboxes for a given HABTM association. My model looks like this: [code=ruby]class Member < ActiveRecord::Base has_and_belongs_to_many :preferred_music_styles, :class_name => ''MusicStyle'', :join_table =>
2007 Jan 18
8
How can I find out which attribute is screwing up pluralize/singularize?
Hey there :) I''m creating this app on top of a legacy database, that has a mixture of auto_inc ids, non-''id'' named pks, non-integer-pks, foreign keys that end in _code instead of _id, etc. I have the model working great in the console, where I can create any modeled object and reference other objects without issues. However, I''m running into problems with
2007 Aug 08
25
Problems with RESTfully generated helpers
I am using helper the RESTfully generated helper methods in my views. My routes are nested so the helpers appear to need arguments passed to them, but it works without arguments. Say for example I have pages and comments. If I do page_comments_path without parameters, it works. However, when I run the rspec test, it fails and tells me i''m missing parameters. I tried to pass