Collection_select's linked

I created a form with two collection_select, country and state and would
like to bring up to date the state list when to select a new country.
How I can make this in Rails?

Thanks

Eleudson
Brazil

Country
<%= collection_select(:person, :country_id, @countries, :id, :name) %>

State
<%= collection_select(:person, :country_id, @states, :id, :name) %>

I think that the 37signals is the home of the Ruby on Rails, and
Basecamp is an example on which ROR is using.

Why the signup and other pages of basecamp are using PHP instead of the
rubyonRails? Is PHP better than ROR on these kind pages?

Vince

Vince, I don’t know Basecamp’s code and I don’t want to use PHP in my
application.

Grateful

Eleudson :slight_smile:

Vince W. wrote:

I think that the 37signals is the home of the Ruby on Rails, and
Basecamp is an example on which ROR is using.

Why the signup and other pages of basecamp are using PHP instead of the
rubyonRails? Is PHP better than ROR on these kind pages?

Vince

I understand that you need to have dependant drop-down boxes, so that
when
you select new value in first drop-down, second is updated to show
values
related to that selection.

I think the great way of doing is to use unobtrusive javascript -
http://www.bobbyvandersluis.com/articles/unobtrusivedynamicselect.php

I use it myself and it works great

Vince W. wrote:

I think that the 37signals is the home of the Ruby on Rails, and
Basecamp is an example on which ROR is using.

Why the signup and other pages of basecamp are using PHP instead of
the rubyonRails? Is PHP better than ROR on these kind pages?

(Just guessing here…) Probably because they were written before Rails
was complete, and once they’re written, there’s very little point
changing them if they work.

Alex Y. wrote:

Vince W. wrote:

I think that the 37signals is the home of the Ruby on Rails, and
Basecamp is an example on which ROR is using.

Why the signup and other pages of basecamp are using PHP instead of
the rubyonRails? Is PHP better than ROR on these kind pages?

(Just guessing here…) Probably because they were written before Rails
was complete, and once they’re written, there’s very little point
changing them if they work.

Alex (or Vince), you have the source code of the Basecamp or another
application like it?

You can send me so that I can study it?

Thanks!

Eleudson
[email protected]

Thanks Amin, I go to try to include in my application.

Eleudson

Emin H. wrote:

I understand that you need to have dependant drop-down boxes, so that
when
you select new value in first drop-down, second is updated to show
values
related to that selection.

I think the great way of doing is to use unobtrusive javascript -
http://www.bobbyvandersluis.com/articles/unobtrusivedynamicselect.php

I use it myself and it works great

Eleudson Queiroz wrote:

Alex (or Vince), you have the source code of the Basecamp or another
application like it?
Hah! Chance would be a fine thing :slight_smile:

I think what Alex is saying here is that Basecamp is not free
(non-gratis). I found that
the Typo rails blog system was an excellent full application to study
however. You can
find a number of free, open source rails apps on the wiki:

http://wiki.rubyonrails.org/rails/pages/OpenSourceProjects

b

On 3/20/06, Alex Y. [email protected] wrote:


Alex

I have a ton of code and plugins in my personal svn repo:

http://techno-weenie.net/svn/projects

For instance, I have all of Rails Weenie and Mephisto (my upcoming blog
engine).


Rick O.
http://techno-weenie.net

Ben M. wrote:

I think what Alex is saying here is that Basecamp is not free
(non-gratis). I found that the Typo rails blog system was an excellent
full application to study however. You can find a number of free, open
source rails apps on the wiki:

http://wiki.rubyonrails.org/rails/pages/OpenSourceProjects
Indeed. Sorry, I should have been more informative :slight_smile: I’ll second
that pointer to Typo. I learnt a lot from it.