Displaying 20 results from an estimated 600 matches similar to: "Pluralization rules?"
2005 Oct 04
3
Ruby/Rails users in Toronto area?
Just checking. I''m new in town, and somewhat new to Ruby on Rails.
-- joshua
2006 Sep 14
2
ov_open_callbacks() performance & memory requirements
Hi guys,
I'm writing a sample playback engine using vorbisfile, but I've hit a
performance problem - hoping someone here can help!
I'm using ov_open_callbacks() to decode memory-based ogg files. It works
OK, but when I call ov_open_callbacks() approximately 300k of memory is
used (presumably to initialise the decoder). It also takes some time to
execute ov_open_callbacks() - the read
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
2007 May 05
4
Stop words, fields, StandardAnalyzer quagmire
Hello,
I''m using: Ruby 1.8.6, Rails 1.2.3, ferret 0.11.4, acts_as_ferret from
svn stable.
I''ve had quite a day wrestling with trying to remove the use of
stopwords. The problem was that when searching for words like "no" or
"the", no results were found. I found a confusing thing behavior that
has taken me some time to figure out, and I hope sharing it
2005 Mar 08
1
Adding to model (newbie)
Sorry if this is a really lame question, I''m sure it''s something fairly
obvious, but I just can''t see it at the moment...
I''m trying to add something simple to the model for a project
management/todo list/thing. The DB has ''first_name'' and ''last_name'',
and I''d like to have "full_name" available.
So -
2005 Mar 14
1
(newbie) /tmp/fcgi_ipc ?
I am running Rails on my Mac, installed from fink/gems. I get this
error when I try to re/start Apache:
FastCgiIpcDir /tmp/fcgi_ipc: access for server (uid -1, gid -1) failed:
read not allowed
If I chmod the /tmp/fcgi_ipc directory, apache starts and everything''s
fine.
Why is fcgi_ipc in my /tmp directory? Can anyone guess why the
chmod''ing doesn''t seem to
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
2008 Nov 26
3
New status_id in Facebook API - FIX
Hi,
I''ve had one of my application broken this morning (French time) with
this error :
NoMethodError (undefined method `status_id='' for
#<Facebooker::User::Status:0x2ad52d1c8478 @message={}, @time="0">):
It appear that Facebook API had change in the status : a status_id
node is new :
<user>
<uid>785637999</uid>
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:
2009 Jan 05
3
Don''t Shout at your JBODs
http://www.youtube.com/watch?v=tDacjrSCeq4
I wonder if the inverse is true. If I whisper soothing
words of encouragement at my JBODs, will I get
more IOPS with reduced latency?
:^)
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 Jun 08
1
question about finding with :include versus nested dynamic finder (bad form? efficiency?)
I have a User model and a Status model. Each user is given a certain
status, either "Accepted", "Rejected", "OnHold", "Declined", etc. I
need to find all users with a status of "Accepted", so I''m doing the
following:
in User.rb:
belongs_to :status
def accepted_users
status_id =
2006 Jul 03
1
how to get value from the post on the List page
Hi,
I''m new to Rails. I''m building a candidates tracking system for
recruiting. I have a List page, but instead of listing every candidate,
I only wanted to list the candidates in certain statuses. The first
time List page is hit, by default, it lists candidates in status < 9.
But on the List page, there is a dropdown where all the statuses are
listed, so that when user
2006 Jan 19
4
Using RoR pluralization rules
Hello,
RoR seems to be aware of plurals like category=>categories etc..I Want to
be able to use this in my application to relate some keywords.Is it possible
?or does RoR itself use some ruby library?
Thanks
Vivek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060119/d5660663/attachment.html
2006 Aug 09
1
question about enforcing constraints in the model
I have a user model and a status model. Each user has a specific
status (accepted, rejected, declined, etc).
I have a form that allows the adminstrator to change certain options
for a user, including their status. I''m using a drop down menu
populated with the different status values, and a default option that
says "Choose a new status" with a value of "".
I want to
2006 Jan 27
1
Basic Many-to-One association
Sari,
I got the list display working without doing an explicit find.
It took a bit of a conceptual convulution to get it to work. I was
thinking of it has Many Cases have One status.
There is no support for Many-to-One so I was a bit stumped.
Then I realized you just have to turn around your thinking to say One
Status has Many Cases. Thus it is a One-to-Many relationship. That
is descriped
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
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
2006 Jun 23
1
''Series'' Pluralization
Howdy,
I have a model I called ''content_series''. I created it and noticed that
Rails called it ''Sery'', so I added ''series'' to the uncountable thing in
the config, like this:
Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, ''\1en''
# inflect.singular /^(ox)en/i, ''\1''
#
2007 Jul 02
8
Strange intermittent no search results problem
Hello,
First the specs:
ruby 1.8.6, rails 1.2.3, ferret 0.11.4, mongrel 1.0.1, mongrel_cluster 0.2.1
And the model''s aaf config:
# Ferret search engine
acts_as_ferret({:fields => {:name => {:boost => 10},
:summary => {:boost => 2},
:body => {:boost => 1, :store =>
:no},