similar to: inflections for different languages

Displaying 20 results from an estimated 2000 matches similar to: "inflections for different languages"

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,
2006 Apr 04
13
Myowndb: a web database built with rails
Hi all, I wanted to announce on this list that I have launched http://myowndb.com which is a web database built with Ruby on Rails. The application lets the administrator users define the data structure through a web interface like in a normal database, with: - tables - enhanced datatypes like emaili, web URL, and a choice in list - relations (one to many, one to one) between tables Once the
2006 Apr 10
5
Inflections.rb in spanish
Hi: I have a problem with the plural of fracancia, I got fragancium but in spanish is fragancia. I modified inflections in environment.rb Inflector.inflections do |i| i.irregular ''fragancia'', ''fragancias'' end but is ignored. The solution that I found was comment this inflection on inflections.rb #inflect.singular(/([ti])a$/i,
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
2005 Nov 20
0
inflections for translation system
Hi, As part of an application I''m developing, I''ve build a translation system (that I hope to release later) fitting my needs. However, I wondered if it would be a good idea to use inflection rules to pluralize translations. Is it possible to have inflection rules for multiple languages in parallel? I need at least french, dutch and english in the same application at the same
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
2013 Mar 26
0
Pluralization with default_locale not working (Rails 4 Beta 1)
Hi, I am just trying to setup an application in Rails 4, Beta 1. The application is (exclusively) in German Language and therefore also the URLs should be German. I want to create a controller and model for an entity called "Region"; Rails pluralizes that to "Regions", but it should be "Regionen". What I did is: in config/application.rb uncomment this line:
2014 Mar 20
2
io mode=native precisions
Hi, Before switching to io mode=native, I wanted to check if there are any disadvantages or potential problem with this setting. I virtio-blk data plane required to use this setting effectively? (as illustrated here: http://blog.vmsplice.net/2013/03/new-in-qemu-14-high-performance-virtio.html) Is there a requirement on the host kernel (eg minimum version)? Thanks in advance Raph
2010 Nov 22
0
Rails 3 - Custom Inflection Not Working?
I''m using Rails (3.0.3) and have the following code in initializers/inflections.rb ActiveSupport::Inflector.inflections do |inflect| inflect.irregular(''nursery'', ''nurseries'') end From the console I''m getting: "nursery".pluralize => "nurseries" "nurseries".singularize => "nurseries" I should be
2008 Mar 06
1
Was "Inflector" moved in Rails 2.0?
Trying to place the following code in my "environment.rb" file is throwing an "uninitialized constant Inflector (NameError)". Did they move where these types of customized rules were supposed to be declared? ******CODE****** Inflector.inflections do |inflect| inflect.uncountable("media") end -- Posted via http://www.ruby-forum.com/.
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
2010 Nov 05
0
RoR:OSV: Installation issue
I am trying to get a local installation of OpenStreetView, on Ubuntu 10.10 On installing Rails (2.3.8) and OSV code using git, when I issue "rake" command, I get response, which is reproduced below signature. What is missing from my installation? -- .O.C. $ rake (in /home/meet/OSV/OpenStreetView) /usr/bin/ruby1.8 -I"lib:test" "/var/lib/gems/1.8/gems/rake-0.8.7/lib/
2006 Mar 31
2
[Howto] custom and translated AR validation error messages
Hi, I''m putting the finishing touches on a multi-lingual application, and just posted a blog entry on how I did translate validation errors generated by ActiveRecord at: http://www.myowndb.com/blog/?p=4 I found it surprisingly easy, and thought I''d document it. The translation is based on a plugin I plan to publish really really soon, more info whith the upcoming announcement.
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 Jul 26
1
Scaffolding Problems
Hi.. Im a brand new ruby on rails developer, and when i make a scaffold and navigate to the it, i get an error that looks like this. ----------------------------------------------------------------- NameError in PagesController#list uninitialized constant Page RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace
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
2006 Jan 09
2
Pluralizations
Hi, I''m new to Ruby and Rails, and I''m running Ruby 1.8.4 with Rails 1.0 on Ubuntu 5.10 (breezy). I wanted to have a model Software, with the table as software (since ''software'' is the plural too). I appreciate one can simply use something like use_table or whatever (can''t remember the exact command) in the Model file, but I''d much rather
2006 Jan 10
1
Cooky cookies causes trouble
Hi All, Yesterday wrote about my troubles with naming a table and model cookies and cookie respectively. I know that everybody hates the newbie screaming bug as soon as he encounters behaviour he doesn''t understand. But I''ve reproduced the error in the simplest application possible, and dare therefore say that this quite possible could be a bug in Rails. Database: CREATE TABLE
2012 Feb 11
1
rake command shows the error
rails -v=2.3.8 gem -v= 1.4.2 ruby -v=1.8.7 When i issue the "rake" command ,it gives the following error . (in /home/amrit/amrit/OSV/OpenStreetView) /usr/bin/ruby1.8 -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/main_controller_test.rb" "test/functional/upload_controller_test.rb"
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'' #