search for: pluralisation

Displaying 20 results from an estimated 24 matches for "pluralisation".

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
2006 Mar 03
3
Pluralisation issue?
I''m having trouble with rails and a table named ''dives''. It seems to work fine if I try it with another table name. I''ve generated the scaffold with the script and have not made any modifications to it. When I try to run the dives controller it starts looking for ''dife.rb'' and fives me ''uninitialized constant Dife''. Is this a
2015 Apr 17
0
Plurals in English (was Re: ClamAV reports a trojan)
...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 adopted from other languages into English before and after modern English established, use 'modern' pluralisation eg, tsunamis, octopuses. <rant> As 'virus' was adopted into English for usage in relation to bugs, malwares etc. after the formation o...
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
2015 Apr 17
2
Plurals in English (was Re: ClamAV reports a trojan)
...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 adopted from other languages into English before and after modern > English established, use 'modern' pluralisation eg, tsunamis, octopuses. > > <rant> > As 'virus' was adopted into English for usage in relation to bugs, > malwar...
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 Jan 23
2
scaffolding generators and pluralization rules
I''ve been working through the "Rolling with Ruby on Rails" tutorial and have come up against something I''m hoping someone here can help me understand. In part two of the tutorial, Curt introduces the "ruby script\generate scaffold re -------------- next part -------------- An HTML attachment was scrubbed... URL:
2005 Aug 08
7
Problems with ./scripts/generate scaffold
...lding so I can make some changes: ./scripts/generate scaffold Device I get app/controllers/devices_controller.rb (Note the plural on device). The views/templates are also pluralised when generated (as apposed to dynamically imported). Is this due to a lack of my understanding of the correct pluralisation of things? If I rename the generated ones to the non-pluralised ones then things work, so perhaps this is a bug? I''ve searched the archives for any other posts regarding this but have not found any thing regarding ''generate'' Thanks for any help in advance! -- Brad --...
2008 Apr 09
6
Using Ruby on Rails with existing database
Hi, I''m a complete newbie to this, I''m afraid. Apologies if this has been answered elsewhere, but I''ve had a look, and can''t find the answers I''m looking for, especially for using Rails 2.0. We have an existing database which we would need to connect Rails to, and the database structure is not what Rails would seem to expect. Firstly, tables are not
2006 May 16
3
wondering how to do some clever DRYing up
Hi there, I''m now getting to the point in my rails app where I can use all of the nice basic features like AJAX and engines etc... but, I want to get my hands a bit dirtier, whilst learning to DRY up my code a bit. I''m using AJAX quite a bit to dynamically populate/edit/sort has_many relationships in forms, and consequently on a model with many has_many''s I end up
2006 Feb 03
3
My associations are coming out nil.
I''ve got a fairly simple system with a table for my Users that includes a CountryId field which looks up to the CountryId field of my Country table. What I would like to happen is for my Rails application, which contains models for both User and Country, to be able to draw the dropdown list of available countries on the edit page, like it does in all the tutorials. My model classes look
2008 Dec 31
1
resource api docs not working for me
Hi, ruby 1.8.4, rails 2.2.2, mongrel 1.5.1, win xp I read in the docs that this : map.resources :articles do |article| article.resources :comments end should result in this lot: article_comments_url(@article) article_comment_url(@article, @comment) article_comments_url(:article_id => @article) article_comment_url(:article_id => @article, :id => @comment) So when I did
2006 Oct 27
6
Table naming conventions
Folks, I am new to rails. I have tried Google searches, checked the tips and doco and can''t find the answer to a simple question. I have a table called "Activity" that I want to rename so I can use RubyOnRails but I don''t know whether the plural form should be "Activitys" or "Activities". Can someone illuminate me on what to do? regards Simon
2006 Jun 25
0
Uninitialized Constants in Scaffolds
I''ve just got the solution to a problem I''d been having. It looks like it''s quite common, so here goes: When creating a scaffold page (using <tt>script/generate scaffold ...</tt>) if you look at the pages it makes (through the server, http:\\127.0.0.1:3000...) all pages work except LIST, which complains of Uninitialized Constant [your model name]
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 Feb 03
0
Re: the dreaded error Before updating scaffolding from new D
Hi Derek, I was getting this too, with three tables, called taxa, databases and references I found I could add an irregular pluralisation for taxa: Inflector.inflections do |inflect| inflect.irregular ''taxon'', ''taxa'' end to the environment.rb, but no amount of modification there would allow databases and references to work - I ended up renaming them to edatabases and erefer...
2006 Feb 23
0
inflections for different languages
Hi, I''d like to use the rails inflections for pluralisation/singularisation in different languages, but want to be sure to not interfere with the pluralization of tables, field names, etc. However, the Inflector is a singleton... Any suggestion so that I can define specific rules for each language, but still let rails use its default rules? thanks Raph
2008 Jan 24
0
ActiveResource or Ajax/XHR + REXML or similar for calling ashx webservice
...amp;status={#status} and have that return the log XML. I don''t want to have to write, modify or even use an XML parser if I can help it, and would rather use ActiveResource. Apart from the URL, the XML that is returned is not in english either, which means it doesn''t follow the pluralisation rules in Rails. Is there some way I can get ARes to relate to the web service? Some way to interface them... Or what is the best way to send requests + get and parse returned XML in a case like this? Thanks for any insight! --~--~---------~--~----~------------~-------~--~----~ You received this...
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,
2007 Oct 10
2
RSpec seems to be having a hard time loading Helper classes
I am getting the error when I run the command: rake spec This is a new project with not current test written besides the ones auto-created for me. +++++++++ $ rake spec (in /Users/chrisolsen/Projects/Rails/chrisolsen/trunk) /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:266:in `load_missing_constant'': uninitialized constant ProjectsHelper