Displaying 20 results from an estimated 1000 matches similar to: "collection_select''s linked"
2006 Mar 20
3
Linking two HTML SELECT''s together
Hi,
How do I link two HTML SELECT''s together. Let''s say for example that I
have a drop-down list with a list of all countries. Once the user
selects one of the countries I would like to make an AJAX call back to
the server to populate the second drop-down list with all of the cities
for that country.
Any ideas on how to go about to do this?
Regards
Jerrie Pelser
--
2006 Mar 01
1
observe_field question
I''m sure this is a simple problem, but I''ve been working on it for a
couple days and can''t seem to figure out the correct way to structure my
observe_field call. The HTML and Javascript generated all appear
correct, but the AJAX call is never made. Below is the code I''m using
and any help would be much appreciated.
models_controller.rb
def
2009 Jan 28
3
Apply style in collection_select ?????
Hi to all,
i have this snip i want to apply style to this combo but there is no
effect
help.......
<%= collection_select(:customer,:country_id, @countries,:id, :country,
html_options={ "style" => "width:110px" },:onchange =>
''updateState('''');'',:id =>''country_id'' )%>
Thanks,
--
Posted via
2007 Mar 20
2
collection_select - why doesn't it work?
Hi all
I guess this is quite a newbie question, but I''m just stuck here and
don''t know why.
<%= form.collection_select :origin_country, Country.find(:all), :id,
:name %>
gives me a select list with name="member[origin_country]". When
submitting the form the following error is shown:
Country expected, got String
When I try
<%= form.collection_select
2006 Apr 06
0
3 doubts on observe_field
Dear friends, with the yours aid already I obtained to use
observe_field, but still I am with some problems and necessary again.
They are three questions to long of the source code below.
Since already I am grateful for the tips.
==== _form.rhtml
<!--[form:city]-->
<p><label for="city_state_country_id">Pa?s</label><br/>
<select
2007 Apr 15
0
how to obtain the selected value from collection_select
Hi,
I''m want to obtain the selected value from collection_select and to use
it
to display something from the same table or other tables.
There is my short code :
<TR>
<TD><label for="country">country name</label></TD>
<TD><%= collection_select(:country, :country_id,
@countries, :id, :name) %></TD>
</TR>
by selecting a
2008 Jun 01
1
How does 37signals code their "Open Bar" (Open ID) feature?
See here:
http://www.37signals.com/openbar
Say you have two applications:
1) Basecamp
2) Highrise
How would Highrise know that the user (with the same OpenID credentials)
exists on another application (Basecamp)?
Is there something involved for that to happen? Are they using
ActiveResource to fetch the external user table, and then searching for
that OpenID?
--
Posted via
2006 Jul 26
2
How to highlight the search term in the search result
In the ''basecamp'' product from 37signals if I search for ''ruby'' the I get a
bunch of results. In the search result page the search term (ruby in this
case) is highlighted.
I was wondering how to accomplish the same.
How to highlight the ''search term'' in the search result? Is there any
already existing utility that I could use?
Thanks.
2006 Mar 30
4
redirect_to("url") with post?
Is there a Rails-friendly way to redirect_to an url and post some
parameters with that?
I''ve tried:
redirect_to("http://whatever.com", { ''postme'' => ''this'' })
redirect_to("http://whatever.com", :post => { ''postme'' => ''this'' })
redirect_to("http://whatever.com", :options
2006 Mar 16
5
TimeZone, TZInfo, daylight savings, and composed_of
Does anyone know the best way to track time zone information. There doesn''t
seem to be much documentation on this. So far it seems like a simple db
field like
create table accounts (
id int unsigned not null auto_increment,
name varchar(50) not null,
time_zone varchar(50) not null,
...
primary key (id)
)
and a class like
class Account < AR
...
2006 Mar 15
3
rails apps look & feel
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: smile_n.gif
Type: image/gif
Size: 144 bytes
Desc: not available
Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060315/e96cfba2/smile_n-0001.gif
2006 Jan 10
14
Not wishing to instigate a DB war, but...
Can I get some opinions on which free DB to use with rails for a virtual
server that will eventually be doing lots of heavy database lifting?
Not a lot of heavy duty querying per se. Think multiple simultaneous
forums and blog sites and the like.
I know each of the different DB possibilities such as MySQL and
PostgreSQL has plus points and minus points. I''m particularly
interested
2006 Apr 17
2
wiki community
So I went to the rails wiki to check some OSS projects in ruby and I get a
bunch garbage for drug ads. WTF?
http://wiki.rubyonrails.com/rails/pages/OpenSourceProjects
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060417/f234d115/attachment.html
2008 Jan 31
1
RSpec and the Basecamp API
I realise that this is kind of a basic question but I''m new to rspec and
still trying to work out how to do things. I''m working on a rails project
that requires basecamp integration via the api, which is fairly trivial to
use via the basecamp.rb wrapper:
Connection:
basecamp = Basecamp.new(APP_CONFIG[''api_host''], APP_CONFIG[''api_username''],
2018 May 29
2
[PATCH] Don't use deprecated API with openssl 1.1+
OpenSSL 1.1.0 has deprecated SSL_load_error_strings and
SSL_library_init. Initialization is done automatically, so they're not
needed with icecast. Fixes issue #2318
Signed-off-by: Eneas U de Queiroz <cote2004-github at yahoo.com>
---
src/tls.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/tls.c b/src/tls.c
index 36edd86..6bd1aee 100644
--- a/src/tls.c
+++ b/src/tls.c
@@
2006 May 25
7
Hide content before page load
Hi,
i''ve been experimentating with dynamicCSS.js [1] to hide content only if
JavaScript is enabled. It works pretty well and fires before onload to avoid
the flash of visible content. Now i''m wondering if there is a Prototype way
of doing this.
[1] http://www.bobbyvandersluis.com/articles/dynamicCSS.php
My main problem is that Prototype functions like Element.toggle() do
2019 Jan 21
2
Amount of writes during index creation
Hi,
I have had a problem report from a Recoll user about the amount of writes
during index creation.
https://opensourceprojects.eu/p/recoll1/tickets/67/
The issue is that the index is on SSD and that the amount of writes is
significant compared to the SSD life expectancy (index size > 250 GB).
>From the numbers he supplied, it seems to me that the total amount of block
writes is roughly
2006 May 09
6
To Do list project?
I''m looking for a good web-based to do list app. Essentially, I''d like
to use Basecamp''s todo management system, but that''s not an option
since I can''t install Basecamp on a server I own. The information
being tracked in the list cannot be sent out of my intranet.
I would imagine that there are a couple of open source rails apps that
would meet my
2006 Apr 27
3
collection_select to display 2 fields
I''m trying to get a collection_select generated Drop-down box to display
two fields from a table (first name & last name); however, I am having
trouble concatenating the symbols. It appears as though any code I put
in the 5th argument for collection_select is processed prior to
executing the collection_select method. The code executes successfully
with 1 symbol in the 5th
2006 Jun 22
2
Setting an index on a collection_select
I am creating a data entry form that allows a user to fill in multiple rows
and save them all at once. In my controller, I create an array of "person"
objects and pass it to the page. On the page, I have a text field like so:
<%= text_field "person", "name", "index" => 1 %>
Note the "index" attribute, which sets the name and id