similar to: How to create multiple selects with related content?

Displaying 20 results from an estimated 10000 matches similar to: "How to create multiple selects with related content?"

2006 May 22
6
which kind of deployment has the best performance
In the following deployment of web app on ONE pc-based server,running linux,which can support the most amount of concurrent users as well as the shortest latency? 1 apache+mongrel 2 apache+mongrel_cluster 3 lighthttpd+mongrel 4 lighthttpd+mongrel_cluster 5 lighthttpd+fastcgi Thanks charlie -- Posted via http://www.ruby-forum.com/.
2006 Jun 01
4
how to: update a select from another select
Hi all, I woke up at 4AM this morning to find a solution for this and it is still not working.. grrr! lost sleep for nothing! Anyways, I have 2 select list and I want the content of the second list to be updated according to what is selected in the first list. I did this in the past by having my application generate all the possible content of the second list and make some Javascript to do
2006 May 08
4
Gettext not worked in firefox,but done well under IE
Anyone who has met such a kind of problem? I am adding i18n characteristics to my webapp using gettext,it works under IE,while not under firefox. here is my codes: po: po\zh_CN\myapp.po after rake makemo, i have got: locale\zh_CN\LC_MESSAGES\myapp.mo require ''gettext/rails'' class ApplicationController < ActionController::Base init_gettext "myapp" end Then I use
2006 May 09
5
How to use gettext in plugins?
I use rails-engine as a plugin of the application and I want to localize the validate message from the plugin: validates_length_of :login, :within => 3..40, :on => :create, :message => N_("%{fn} is too short (min is %d characters)") It can not display the according language,where should i set it? I have tried to add require ''gettext/rails''
2008 Jul 07
1
Non model cascading selects
In my model I have a city_id. ON the form I am using a cascading select to select the state, which then does a remote_submit to get the list of cities (and hence the city_id) for the selected state. The problem that I am having is that if I make a selection, hit SUBMIT and validation fails, the original selected state/city is now reset (ie, the values aren''t saved). Since they
2004 Apr 22
1
Selection of cities sample
Hi, I have a question, how to most properly select set of cities which would be as similar as possible in some particular variables with the City of Boston (which I use as my base line). I thought about ordering cities by sum of ((differences between value of that particular variable for that particular city and the value of same variable for Boston) divided by the standard deviation of the
2006 Apr 12
22
Dynamic Select Box
Hi, I''m new to rails/ruby having come from PHP and am just starting to get my head round how easy it can be :) However, can anyone point me in the right direction for dynamicaly updating a select box based upon the choice of a previous select box, without a page refresh. Any and all help greatly appreciated. Thanks -- Posted via http://www.ruby-forum.com/.
2006 Apr 17
5
Strange question on file_column
I have met a very strange problem on file_column usage. After I have added file_column :image to the model,everything is ok. But after I added more: file_column :image, :magick => {:versions => { :thumb => {:size => "50*50"}, :medium => {:size => "640*480>"}}} I can not even start the whole website! Here is the
2006 Apr 26
3
Dead Simple Deployment
Friends- I have put up a small tutorial about my experimentations with mongrel clusters behind an HTTP load balancer with no front web server like lighty or apache. This little setup is extremely powerful for how easy it is to set up. I would love for more folks to experiment with this type of setup to expose any issues it may have as a production environment. I have had zero issues
2006 May 08
2
How to set the default language in GetText?
How to set the default language in GetText? The default language of GetText is en,and I want to change it to another language,and also keep the ability to change to any other languages by just click the according href. Currently I use: class ApplicationController < ActionController::Base before_filter :set_charset def set_charset @headers["Content-Type"] = "text/html;
2010 Feb 06
2
observe_field example of two related selects
I''ve done the ''Googling'' for days now to find an example of using two dependent select statements on a form where the user selects the parent record value and the observe_field ''kicks in'' to create another select that shows parent.children offerings. Is there anyone I can pay to provide me with the simplest example? If so, please contact me by email.
2005 Dec 15
3
Lonked Select Boxes
linked selects are critical to my application. for those who don''t know, a linked select updates as the select box it is linked to is updated. for example, if select 1 is "California", then select 2 will list all the cities in California. change select 1 to Washington and select 2 will automatically change to list all the cities in Washington. I use a php forms class to
2009 Oct 23
0
Documenting related data sets
Say I want to include the data from Minard's march on Moscow graphic in a package. They consist of three data frames, Minard.troops, Minard.cities, Minard.temp. I've determined that I can document them all in one .Rd file, Minard.Rd, that starts: \name{Minard} \Rdversion{1.1} \alias{Minard} \alias{Minard.cities} \alias{Minard.troops} \alias{Minard.temp} \docType{data} \title{ Data
2006 Apr 11
2
how to order by a related class???
Let''s suppose I have a books table and an authors table. A book belongs to an author (to put things simply) I want to browse the book list order by the author''s name. In sql it would be like this (to make it clear) select b.id, b.title, a.id as authors_id a.name as authors_name from books as b inner join authors as a on b.authors_id = a.id order by a.name the problem is that
2006 Apr 27
6
Why not mod_ruby?
Hi! I''ve understood that the mod_ruby apache module is not recommended for running Ruby on Rails applications. But I haven''t found any information as to why that is so. Please enlighten me. And could you point me to the (currently) prefered production environment. (That can handle both RoR and PHP sites). Thank you and best regards Hans-Eric Gr?nlund -- Posted via
2006 Apr 16
3
variable variables?
Hi everyone, Does Ruby support variable variables like PHP (http://www.php.net/manual/en/language.variables.variable.php)? Or do I have to use eval, like some_hash.each_pair{|key, pair| eval "#{key} = #{value}" } Or is there some other way? I''m actually trying to figure this out in order to use ez_where to create its conditions from a hash, so if this isn''t even
2006 Jan 06
3
Countries -> Cities Select box
I am trying to play with a Countries -> Cities dynamically updating select box.that is if someone selects a country then all the cities of that country must be listed.Does anyone know of any data source for this? I searched for it but couldnt find any good usable source. Better still is there a module which I can mixin for this? Thanks Vivek -------------- next part -------------- An HTML
2008 Apr 18
3
Relating to records in same table
I''m in progress of making a little folder system with Ruby on Rails. I''ve got a "folders" table. Each "folder" has got an id and a folder_id. The folder_id is supposed to represent the folders'' parent folder. How can I tell Rails? I would like Rails to automaticly delete all subfolders of a folder when I delete the folder it self. Any ideas? --
2006 Mar 22
6
Relatively easy HTML/XML parsing utilities?
Anyone know of any Ruby modules which can be used to parse an HTML page ? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Sep 12
3
rails threads / contexts / fastcgi - can someone explain ???
Hi, Would someone be able to explain how ruby class/object contexts work from the point of view of a deployed rails application using FASTCGI and noting there are multiple Ruby processes running (say on dreamhost for example). Some questions to help clarify what I''m trying to understand: a) how do incoming URL requests get spread across the multiple Ruby processes (let''s