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 <p><label for="person_country_id">Country</label><br/> <%= collection_select(:person, :country_id, @countries, :id, :name) %></p> <p><label for="person_state_id">State</label><br/> <%= collection_select(:person, :country_id, @states, :id, :name) %></p> -- Posted via http://www.ruby-forum.com/.
Vince Wang
2006-Mar-18 19:56 UTC
[Rails] Why the signup and other pages of basecamp are using PHP instead of the rubyonRails ?
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 3354 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060318/9db9a92a/attachment.bin
Eleudson Queiroz
2006-Mar-18 20:22 UTC
[Rails] Re: Why the signup and other pages of basecamp are using PHP
Vince, I don''t know Basecamp''s code and I don''t want to use PHP in my application. Grateful Eleudson :-) Vince Wang 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-- Posted via http://www.ruby-forum.com/.
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 On 3/18/06, Eleudson Queiroz <eleudson@mandic.com.br> wrote:> > 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 > > <p><label for="person_country_id">Country</label><br/> > <%= collection_select(:person, :country_id, @countries, :id, :name) > %></p> > > <p><label for="person_state_id">State</label><br/> > <%= collection_select(:person, :country_id, @states, :id, :name) %></p> > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060318/6a0b90e2/attachment.html
Thanks Amin, I go to try to include in my application. Eleudson Emin Hasanov 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-- Posted via http://www.ruby-forum.com/.
Alex Young
2006-Mar-19 06:59 UTC
[Rails] Why the signup and other pages of basecamp are using PHP instead of the rubyonRails ?
Vince Wang 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
Eleudson Queiroz
2006-Mar-20 11:33 UTC
[Rails] Re: Why the signup and other pages of basecamp are using PHP
Alex Young wrote:> Vince Wang 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 eleudson@mandic.com.br -- Posted via http://www.ruby-forum.com/.
Alex Young
2006-Mar-20 12:38 UTC
[Rails] Re: Why the signup and other pages of basecamp are using PHP
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 :-) -- Alex
Ben Munat
2006-Mar-20 16:49 UTC
[Rails] Re: Why the signup and other pages of basecamp are using PHP
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 Alex Young wrote:> 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 :-) >
Alex Young
2006-Mar-20 17:14 UTC
[Rails] Re: Why the signup and other pages of basecamp are using PHP
Ben Munat 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/OpenSourceProjectsIndeed. Sorry, I should have been more informative :-) I''ll second that pointer to Typo. I learnt a *lot* from it. -- Alex
Rick Olson
2006-Mar-20 17:23 UTC
[Rails] Re: Why the signup and other pages of basecamp are using PHP
On 3/20/06, Alex Young <alex@blackkettle.org> wrote:> Ben Munat 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 :-) I''ll second > that pointer to Typo. I learnt a *lot* from it. > > -- > AlexI 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 Olson http://techno-weenie.net