similar to: [Howto] custom and translated AR validation error messages

Displaying 20 results from an estimated 2000 matches similar to: "[Howto] custom and translated AR validation error messages"

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
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
2009 Dec 03
1
Ann: ArEvents
Hi, I needed to be able to add actions to be taken during the lifecycle of ActiveRecord object, but needed to configure it dynamically. Observers were not flexible enough and I ended up developing ArEvents, which lets you easily attach and detach event listeners, the events correspond to the active record callbacks. If you have an existing model, just include the ArEvents module:
2014 Mar 24
1
Re: io mode=native precisions
On 03/24/2014 03:57 AM, Raphael Bauduin wrote: > > > > On Thu, Mar 20, 2014 at 9:13 AM, Raphael Bauduin <rblists@gmail.com > <mailto:rblists@gmail.com>> wrote: > > 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
2005 Dec 19
1
multiple databases
Hi, I''m writing a translation plugin which takes the translations from a database that is different than the application''s main database. When in my plugin''s models I put this code: ActiveRecord::Base.establish_connection( RAILS_ENV+"-translations" ) all my application''s models use the plugin''s database.... Why are my
2014 Mar 26
1
host crashes "unable to handle paging request"
Hi, we have regular crashed of a kvm host with the error "unable to handle paging request". Can this be due to memory over-commitment even if some memory is still used by the kernel for caches and buffers? (collectd graph shows no free memory, with 15G used, very little buffers, and 1G cache). There are 32GB of swap, of which only 150MB are used. I suspect might be the direction to
2006 Jan 07
1
datetime returned as string, sometimes....
Hi, I''m using postgresql 8.1, rails 1.0, and I have a strange problem on a datetime field (timestamp without time zone in postgresql). As shown below, the field "value" sometimes returns a string, and sometimes a Time instance, depending of where the value is used....: * breakpoint session _from inside an instance method_ of the object: value => "1996-05-01
2005 Mar 07
3
exclude an attribute from save
Hi, I''ve used .save to save the attributes, but on my table there is an autoincrementing id (not the primary key) that doesn''t need to be inserted... but save try to INSERT it anyway... is there a way to avoid save from acting this way or to whisper him to be more polite this time? ;) Thanks, Enrico -- "The only thing necessary for the triumph of evil is for good men to do
2006 Jan 15
1
how to provide plugin configuration?
Hi, I''m finalising a translation plugin I use in one app. I''d like the plugin the be configurable but am not sure how to provide this configurability. For example, there''s a setting for the cookie name to use when saving user''s prefered language. I thought of having a class TranslationConfig like this: class TranslationsConfig def self.cookie_name
2005 Mar 02
3
uprgrade to 0.10: uninitialized constant Class::Object
Hi, I installed rails 0.10 with ruby gem, and upgraded my application as described at http://manuals.rubyonrails.com/read/book/15 . Now, when accessing the action index of the controller rss_feed, I get this error in the terminal when I started the server: #<NameError: uninitialized constant Class::Object>
2014 Mar 24
0
Re: io mode=native precisions
On Thu, Mar 20, 2014 at 9:13 AM, Raphael Bauduin <rblists@gmail.com> wrote: > 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: >
2006 Apr 05
7
AdminPages Rails CMS is now an engine
Hi all, I just released the new version of my CMS AdminPages as a Rails engine. It uses the Dojo Toolkit for UI elements. Features: Manipulate pages and content with Drag n Drop, Pages in a sortable tree, easy to define new page elements, "Nice" URLs, Page Caching, Rich Text Editor, multiple columns per page, custom content types, Layout scaffolding BSD license
2006 May 11
2
Making my site multi-lingual
Hi, I''m wondering how I should go about making my website multi-lingual. Basically, there will be different content for the different languages, and that''s not really a problem... all I need to do is give each content entry in the database a language_id. But the problem is with the non-content text, eg, "In order to access this area, you must be logged in",
2006 Jan 02
3
ANN: new rails site/RoR praise
Hi, >From idea to launch in less than 48 hours (those 48 hours including the new year party ;) , rails once again showed its effectiveness. Last friday I read the news about a guy who sold a million pixels for 1$ each on his homepage. After slamming my head during half an hour for not having thought of it [1], I thought I''d better spend some time on a rails project, and more as a
2005 Aug 10
24
Multilingual Rails v0.5. Big update!
Multilingual Rails v0.5 is just released with lots of new features. Here is the changelog: v0.5: New charset conversion string-methods. Multilingual Rails always use UTF-8 internally. iconv_to(charset) # Return string as charset iconv_from(charset) # Return string as UTF-8, converted from charset iconv_from!(charset) # Convert string from charset to UTF-8
2005 Dec 28
1
advice needed: damagecontrol or CIA?
Hi, I''m looking to set up a continuous integration server for a rails application. This application is under source control with darcs. I''ve read about damagecontrol and CIA, and wonder what experience you can share so I can make my mind. CIA seems to work with a post-commit so I should be able to use it with darcs. And as it is in the rails svn repository, I have good hope
2006 Apr 01
15
Ruby on Rails CMS released. Web 2.0, Ajax, etc
Eribium, a content managing system built with rails has been released completely free under the MIT License. http://www.eribium.org/eribium/?p=21 You can find a demo here: http://alexmaccaw.no-ip.info:3000/admin (user and pass are ''demo''). Some of the features include: * Completely Unobtrusive Javascript. * Liquid View, works with pretty much any screen resolution.
2006 Apr 16
1
plugins problems with RoR 1.1 in production
Hi, I''m looking to upgrade an application based on rails 1.0, and I have a problem with plugins working fine in development, but not in production or test. Actually, it happens in all environments with their dependency mechanism set to :load. For example for the selenium on rails plugin, it needs the class SeleniumOnRailsConfig, which triggers the dependency on
2009 Dec 15
0
Problems reloading plugin extending AR model
Hi, I have an AR model called Entity, which is extended in a plugin like this (this is in a file under lib/ which is required by init.rb of the plugin): http://github.com/dedomenon/madb_notifications/blob/master/lib/madb_notifications_lib.rb#L8 Entity.class_eval do def user_subscribed_to_creation?(user_id) NotificationSubscription.find(:first, :conditions => [ "source_filter
2006 Apr 11
6
Google Base... in Rails?
Ok, so this is kinda out of the blue... but I''ve been looking at Google Base and thinking that it''s got some really good ideas in it. Especially the way you can create your own "type" of item with its own custom attributes, like date range, location, number, text, etc. Kind of like defining a database with a GUI, but not exactly. It seems really interesting to me, from