search for: nmkolev

Displaying 15 results from an estimated 15 matches for "nmkolev".

Did you mean: nikolaev
2006 Jan 24
17
Updated lighttpd to 1.4.9 - error running dispatch.fcgi
Hi all, I just updated lighttpd from 1.4.8 to 1.4.9 and it now refuses to start with the following error: 2006-01-24 23:12:24: (mod_fastcgi.c.989) execve failed for: public/ dispatch.fcgi No such file or directory 2006-01-24 23:12:24: (mod_fastcgi.c.1015) the fastcgi-backend public/ dispatch.fcgi failed to start: 2006-01-24 23:12:24: (mod_fastcgi.c.1019) child exited with status 2
2006 Feb 01
4
Custom view helpers
Hi all, I would like to write some custom helpers like the ones available as form helpers text_field, text_area and the like. My first try was this: custom_helper(obj, meth) ''some_string'' + obj.send(meth) + ''some_other_string'' end Object and method are being passed as symbols like this: custom_helper(:person, :name) and Ruby rightfully complains that
2005 Mar 06
12
Where to place custom classes?
Hi all, I am writing a simple shopping cart which will consist of a single class. There will be no DB table for carts so I do not want to make my Cart a model. But where do I place my Cart class so that I can access it in my controllers? I want to be able do do things like this (for instance in a shop controller): def add_to_cart @session[''cart''].add(article_id, amount)
2006 Mar 08
2
Multilingual Validation Messages
Hi all, I have a mutilingual app and want to customize the validation error messasges. I cannot override them as I need them in more than one language, so I have done the following: validates_presence_of :some_attr, :message => _(''should not be blank'') I am using gettext to translate the message. This works in development mode, but not in production, even after a
2005 Mar 06
4
has_many and order
Hi all, if I have a has_many and belongs_to relations like this category has many articles article belongs to category is there a way I can specify the order of articles when pulling them up with @some_category.articles ? Many thanks in advance! -- Nicky
2006 Jun 13
0
Mixing dynamic and static content in routing
Hi all, I am working on a small project--a backend for a website with a tree like structure. I have a Node model which acts_as_tree and use polymorphic associations to "link" differend resources (a free form page, a course description and so on) to the nodes. In my routes.conf I have map.connect ''/homepage/*path_info'', :controller => "index",
2006 Jun 16
0
Overwriting catch all routes
Hi all, I have set up the following catch all route: map.connect ''/homepage/*path_info'', :controller => "index", :action => "show_node" Now I can access url like /homepage, /homepage/company/history and so on. I want to add a search action at /homepage/search. Adding map.connect ''/homepage/search'', :controller =>
2006 Jun 19
0
Eager loading and acts_as_tree
Hi all, I have a node structure which acts_as_tree. I am pulling the first two levels under the root node with: @root = Node.find(1, :include => [ { :children => [ :children, :parent ] }, :parent ]) How do I pull out the first three levels? What about four? @root = Node.find(1, :include => [ { :children => [ { :children => [:children, :parent] }, :parent ] }, :parent ])
2006 May 05
0
JavaScript Prompt and link_to_remote
Hi all, I would like to get one of the parameters for a link_to_remote with JavaScript prompt. So far I have this: link_to_remote(image_tag("/images/interface/add.png"), :before => "$name = prompt(''Name?'')", :url => { :action => ''add_child'', :id => node, :name => XXX }, :update =>
2006 May 08
2
Associating with different classes
Dear Railers, I am toying with a new project and have a schema design question. I have a tree-like node structure. Each of the nodes will be associated with a single object. This associated object can be of a variety of types. I represent the tree through a Node class which acts_as_tree. Now imagine three other classes--Animals, Fruits and Vegetables. Each node will have an association
2006 May 10
0
Ezra''s acl_system2 and flash not getting populated in functional tests
Hi all, I am using the LoginGenerator and Ezra''s acl_system2 to protect certain actions in my controllers. I have written some functional tests to check for correct handling of redirects, flashes, etc. The flashes however only get populated on the first get action in any given test. Here is what I have so far: In the controller: class PageController < AC before_filter
2006 Feb 15
0
File Column and Colorspaces
Hi all, is there a way to automatically convert uploaded images to an RGB colorspace? I have a small intranet app, in which people can upload images. Sometimes a large 300dpi CMYK image intended for print sneaks in and causes trouble... Many thanks in advance, Nicky
2006 Jan 02
1
Session and flash now working in IE6
Hi all, I noticed that my sessions and flashes are not working in IE6 (no problem with safari or firefox). I did a <%= debug session %> and indeed IE6 is showing session[:new_session] to be true all the time. This means a new session is created for every request. An old version of the same application is running on the same server under a different subdomain. In this sessions are
2005 Dec 18
0
Extending AR::B to provide translations
Hi all, I want to extend AR::B is such a way as to be able to support and display different language versions of objects. I know of and have tried Globalize but still want to do this on my own for a multitude of reasons (the educational value probably being most important). My table for the objects has columns named like en_name, de_name, fr_name, en_description, de_description,
2005 Dec 26
3
Override Validation?
Hi all, is there a way to override the validation methods so as to avoid the div.fieldWithErrors divs from being created on the redisplayed form? Many thanks in advance, Nicky