similar to: routes and link_to

Displaying 20 results from an estimated 300 matches similar to: "routes and link_to"

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
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
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.
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 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
2007 Nov 23
2
Create my own dynamic "finder" method?
Hi all I''m having an authorization method that looks like the following: def user_requests_authorization_to(right_name) ... end I find it boring to always use user_requests_authorization_to(''EDIT'') user_requests_authorization_to(''CREATE'') etc., so I thought I could implement my own dynamic method, like the dynamic finders! Instead of the calls
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
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 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
2017 Dec 01
2
Using Scalar Evolution to Identify Expressions Evolving in terms of Loop induction variables
Hi, I am using Scalar Evolution to extract access expressions (for load and store instructions) in terms of the loop induction variables. I observe that the Scalar Evolution analysis is returning more expressions than I expect - including ones that are not defined in terms of the loop induction variable. For instance in the following code: for(unsigned long int bid = 0; bid < no_of_queries;
2017 Dec 01
0
Using Scalar Evolution to Identify Expressions Evolving in terms of Loop induction variables
Hi Hashim, Scalar evolution determines evolution of scalar in terms of expression chain driving it. Try dumping the detailed log using opt -analyze -scalar-evolution <.ll> -S , and look for LoopDispositions corresponding to different expression which shows variance characteristics of a particular expression w.r.t loop i.e. [computable/variant/invariant]. Thanks On Fri, Dec 1, 2017 at
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
2006 Apr 07
0
HABTM query return all results
I have a role-based authorization system exactly like the one from Rails Recepies. I am looking to return all rights however in my view I want to highlight the rights that are associated with the currently selected role (passed in through @params[:id]). Schema: create_table "rights", :force => true do |t| t.column "name", :string t.column "controller",
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>
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:
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
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 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
2006 Jul 08
9
How to handle dynamically columned tables in rails
I want to build an application that lets me (the end user accessing a web page) design a simple list with columns and add records. E.g., if the end user says I want a table that has a list of songs, he can create a list (title, date, artist, label) and then make another list of, e.g., books on his bookshelf with the necessary columns (title, author, pub_date, shelf). The end user
2006 Feb 15
4
problem with saving id''s in a join table
hello, I''am new to ROR and I have a problem. I have to models "rights" and "roles" on a has_and_belongs_to_many relationship, through "roles_rights" table. When I try to add a new role although I put in my form fields for each right, a record is added to table roles but none to roles_rights. I am using Ruby 1.8.4 rails 1.0 mysql 5.0 here is my code: