Displaying 20 results from an estimated 24 matches for "pluralise".
Did you mean:
pluralism
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)
[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
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)
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 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
...ollers/device_controller.rb
where I can then add:
scaffold :device
However, if I want to actually generate the scaffolding 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 reg...
2008 Apr 09
6
Using Ruby on Rails with existing database
...where, 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 always pluralised.
Secondly, some primary keys are not integers.
Thirdly, some primary keys are composite.
Now if I''m correct, I would need to do the following, eg. for an
"ENTITY" table:
script/generate scaffold entity {field definitions here} --skip-
migration
Is there any way to avoid having...
2006 May 16
3
wondering how to do some clever DRYing up
...t all need the same basic method (Producers, ImagePersonnel etc...)
is there a way I can somehow move this into the application controller and run it generically such that it takes a Model as an argument, something like:
def form_sort(model)
i = 1
params[:#{model}].each { # would need to pluralise
|id|
#{model}.update(id, :position => i)
i = i+1
}
render :nothing => true
end
I''m sure something like this is very possible, and most likely very neat and easy to do in ruby/rails - I''m just not sure where to start!
any pointer gratefully reciev...
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
...e_id => @article, :id => @comment)
So when I did my own idea of the above :
map.resource :people,:singular=>:person do |person|
person.resources :invitations;
end
I was surprised to find no method such as person_invitations (with or
without the :singular=>true): all the methods are pluralised for
people. And for those methods that do exist none take the person id,
even the index method (which makes it useless to me). Here is what
rake is telling me are my routes:
people_invitations GET /people/invitations
formatted_people_invitations GET /people/
invitations.:format
POST /peop...
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
...nitialized Constant [your model name]
This seems to be to do with Rails'' use of convention instead of
configuration:
- Database name should be lowercase. The first call to <tt>Rails
my_app</tt> should be identical (same lower case).
- Table names should be lower case and pluralised (ie topics, not topic
or Topics)
- Calls to <tt>script/generate scaffold</tt> should be lower case and
SINGULAR (ie topic, not topics or Topic or Topics)
I think this should be made more clear to n00bs like myself. I''m finding
the online documentation for Rails is terrib...
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
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
Hi!
I''m making an application to display logs that are returned from an
external resource as XML.
I''d like to use ActiveResource, but from what I understand it can''t be
done out of the box,
because the WS I''m calling doesn''t conform to the URI conventions.
To log on to the service, I''ll have to call something like
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