similar to: Pluralisation issue?

Displaying 20 results from an estimated 1000 matches similar to: "Pluralisation issue?"

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
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,
2009 Feb 13
0
lists on a script
Dear R experts, I have a problem with a function I wrote. The fuction looks like this: series<-function(x,s){ foo<-list(); ind3<-integer(); for (j in diff){ for (i in 1:(n-12)){ if (!(x[i,j]==0)&!(x[i+1,j]==0)&!(x[i+2,j]==0)&!(x[i+3,j]==0)&!(x[i+4,j]==0)&!(x[i+5,j]==0)&!(x[i+6,j]==0)
2006 Apr 16
5
Newbie Problems with pluralization
Hi, I have a many to many relationship incorporating the following tables: taxes --> taxes_tax_groups --> tax_groups I have a model named tax with the following declaration: has_and_belongs_to_many :tax_groups and I have a model named tax_group with the following declaration: has_and_belongs_to_many :taxes I am attempting to run the following unit test: require
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:
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 Feb 11
5
acts_as_taggable : plugin vs gem
Googling for acts_as_taggable is a little confusing: gem, plugin?! What are the differences? Which one to choose? Where is the best doc? Alain
2008 Sep 20
2
NameError: uninitialized constant Inflector
I follwed the example here: http://dekstop.de/weblog/2005/12/rails_inflector_in_ruby_scripts/ #!/usr/bin/ruby require ''rubygems'' require ''active_support/inflector'' puts Inflector.singularize(''inflections'') I loaded it into irb and wrote a killer script both of which worked perfectly for weeks. Now when I try and run the script or run
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
2024 Feb 21
1
Cant access home folder after 4.13.x
The users in LDAP appear as local users on my file server using the /etc/nsswitch.conf passwd: files ldap group: files ldap [root at fs ~]# getent passwd | grep kev kev:x:10000:10001:Kev:/home/fukr/kev:/bin/bash [root at fs ~]# getent group | grep kev net-users::10001:kev net-admins::10000:kev media::10002:kev Kerberos is working fine, so is NTP and DNS. My problem is that my issue
2005 Apr 06
3
NameError in <controller not set>#<action not set>
I can''t figure out why I''m getting the following error. There''s nothing wrong in my communities_controller file. And the helper for communties exists. Any ideas? Thanks, Joe NameError in <controller not set>#<action not set> uninitialized constant CommunitiesHelper app/controllers/communities_controller.rb:1 script/server:48 Show framework trace
2024 Feb 21
1
Cant access home folder after 4.13.x
On Wed, 21 Feb 2024 21:19:23 +0000 evil cRaftKnife via samba <samba at lists.samba.org> wrote: > I do have 'local' users in OpenLDAP. > But how is Samba supposed to know this ? Are you also running a dns server ? I ask this because a Samba AD DC runs kerberos, ldap and a dns server and is a lot easier to set up than your existing setup, I would also recommend you use a
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
2013 Aug 16
2
share permissions
I have a share setup on a Samba 4.0.8 / CentOS 6.4 box that is successfully replicating with a W2K3 server. I'm following the HOWTO here: https://wiki.samba.org/index.php/Setup_and_configure_file_shares [mytest] path = /home/me/mytestshare <-- with or without trailing slash read only = No On the W2K3 box, I can browse to \\newdc and I see my test share listed there. I can also see
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
2010 Mar 18
3
rake db:migrate -> uninitialized constant
Hi-- I''m trying to do a first migration (2.3.5). I generated a model "Video", but when I try to migrate I get "uninitialized constant Videos". Why is it trying to find a plural class name? Here''s more complete output: trans@logisys:models$ rake db:migrate --trace ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment **
2024 Feb 21
1
Cant access home folder after 4.13.x
Hi I've been using Samba from pkgsrc successfully on Illumos, SmartOS specifically until I moved to 4.17.11. When I try to access my home folder on Linux I get, chdir_current_service: vfs_ChDir(/home/fukr/kev) failed: Permission denied. Current token: uid=10000, gid=10001, 3 groups: 10001 10000 10002 My home folder permissions are 700. If I change to 755 it works fine. My the uid, gid are,
2024 Feb 21
1
Cant access home folder after 4.13.x
On Wed, 21 Feb 2024 20:09:04 +0000 evil cRaftKnife via samba <samba at lists.samba.org> wrote: > Hi > > I've been using Samba from pkgsrc successfully on Illumos, SmartOS > specifically until I moved to 4.17.11. When I try to access my home > folder on Linux I get, > > chdir_current_service: vfs_ChDir(/home/fukr/kev) failed: Permission > denied. Current token:
2006 Jul 22
1
How to debug this
Hello,I get this message and I don''t know how to interprete this.I think it has to do with plural tables and singular referencesThanks for any help!Jim======================================================================================uninitialized constant SubjectRAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace
2006 Jan 09
1
Cooky Cookies
Hi All, I have a problem with the stemming(?) in rails. I have a table cookie and a Cookie model which I have generated a scaffold for. The problem is that rails starts looking for a file that it calls "cooky.rb", this must be some kind of misunderstanding between me and rails, but how do I correct it? Other scaffolds work just fine. /Hugo NameError in Cookie#index uninitialized