Hello friendly Rails community. After many agonizing months of research and contemplation, I''ve finally decided to use Rails as the main platform for all of the software that me and my partners are offering through our new consulting firm. I also considered using Python (perhaps with Dejango), Smalltalk with Seaside or Lisp with UncommonWeb. The decision was very difficult, but in the end, I don''t think I will regret my choice. I am looking forward to a fun couple of years! 1) One of the requirements for one of my applications is to use pop-up windows at certain points to retrieve bits of information from the user before showing all of the information in a main window. Eg: pop-up a window to get the social security number for an employee. then show that employee in the main window once they''ve entered it. Will I have to handle all of that manually, or is there some way to tell Rails to do it for me? Do you anticipate this being especially difficult for me (btw, I have some control over the user''s environment; it need not function in "the average surfers" browser)? 2) I suppose this is just aesthetic, but I''d really like to know whether my controller names should be plural or not. In a few of the tutorials and in Agile Web Development with Rails, the controllers are singular: eg, EmployeeController. But when I use "ruby generate scaffold Employee" it create EmployeesController and makes my actions only available at, eg "portal/employees/new". Which is correct? Thanks so much! Jared Nuzzolillo http://www.protoscript.net/ _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On Sep 28, 2005, at 1:37 PM, Jared Nuzzolillo wrote:> Hello friendly Rails community. After many agonizing months of > research and contemplation, I''ve finally decided to use Rails as > the main platform for all of the software that me and my partners > are offering through our new consulting firm. I also considered > using Python (perhaps with Dejango), Smalltalk with Seaside or Lisp > with UncommonWeb. The decision was very difficult, but in the end, > I don''t think I will regret my choice. I am looking forward to a > fun couple of years! > > 1) One of the requirements for one of my applications is to use pop- > up windows at certain points to retrieve bits of information from > the user before showing all of the information in a main window. > Eg: pop-up a window to get the social security number for an > employee. then show that employee in the main window once they''ve > entered it. Will I have to handle all of that manually, or is there > some way to tell Rails to do it for me? Do you anticipate this > being especially difficult for me (btw, I have some control over > the user''s environment; it need not function in "the average > surfers" browser)? > > 2) I suppose this is just aesthetic, but I''d really like to know > whether my controller names should be plural or not. In a few of > the tutorials and in Agile Web Development with Rails, the > controllers are singular: eg, EmployeeController. But when I use > "ruby generate scaffold Employee" it create EmployeesController and > makes my actions only available at, eg "portal/employees/new". > Which is correct? > > Thanks so much! > Jared Nuzzolillo > http://www.protoscript.net/ > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >Hey Jared- The plural controllers with taht scaffold command is a feature (bug?) of the generate script. If you run it this way with explicit controller and model you will get the singular controllers: $ ruby script/generate scaffold employee Employee The first employee is for the controller and the second capitalized Employee is for the model. I have no explanation for whay it works this way but this is the way it works for now. So I recommend using singular controllers and the only way to get those with a generated scaffold is to be explicit like the command above. And welcome to the rails community and to the world of ruby! I am sure you will be happy with your choice! Cheers- -Ezra Zygmuntowicz Yakima Herald-Republic WebMaster http://yakimaherald.com 509-577-7732 ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org
> > [...] > > $ ruby script/generate scaffold employee Employee > > The first employee is for the controller and the second capitalized > Employee is for the model. I have no explanation for whay it works > this way but this is the way it works for now. So I recommend using > singular controllers and the only way to get those with a generated > scaffold is to be explicit like the command above. > And welcome to the rails community and to the world of ruby! I > am sure you will be happy with your choice! > [...]Cheers-> -Ezra Zygmuntowicz > Yakima Herald-Republic > WebMaster > http://yakimaherald.com > 509-577-7732 > ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org >Thank you very much, Ezra. Does anyone know about pop-up windows? I am afraid I am missing something obvious and that this will end up being a "duh" moment. Thanks, Jared Nuzzolillo http://www.protoscript.net/ _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Jared Nuzzolillo wrote:> Does anyone know about pop-up windows?There''s this: http://dev.rubyonrails.org/ticket/1996 -- We develop, watch us RoR, in numbers too big to ignore.
Rails doesn''t have any special tool for popup windows but it does have nice support for ajax which can replace popup windows more elegantly in most cases. On 9/28/05, Jared Nuzzolillo <onceuponapriori-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > [...] > > > > $ ruby script/generate scaffold employee Employee > > > > The first employee is for the controller and the second capitalized > > Employee is for the model. I have no explanation for whay it works > > this way but this is the way it works for now. So I recommend using > > singular controllers and the only way to get those with a generated > > scaffold is to be explicit like the command above. > > And welcome to the rails community and to the world of ruby! I > > am sure you will be happy with your choice! > > [...] > > Cheers- > > -Ezra Zygmuntowicz > > Yakima Herald-Republic > > WebMaster > > http://yakimaherald.com > > 509-577-7732 > > ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org > > > > > Thank you very much, Ezra. > > Does anyone know about pop-up windows? I am afraid I am missing something > obvious and that this will end up being a "duh" moment. > > Thanks, > > Jared Nuzzolillo > http://www.protoscript.net/ > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
I''ve figured out I can set up either Apache 2.0.xx or WEBrick on my Windows XP system. But which version of MySql do I use and which connector, the pure C version that is for MySQL 4.1 (and that probably won''t build on Windows) or the ruby-MySQL version and some older version of MySql ? Which version ? Or does WEBrick contain all the MySql connectors I''ll need? Can I use MySql 4.0.21 with the ruby1.8.2/WEBrick for rails development? C:\>MySQL --version MySQL Ver 12.22 Distrib 4.0.21, for Win95/Win98 (i32)... Warren Seltzer
Everything should be there to use MySql 4.0 without downloading any connectors. Just install Ruby, MySql, and then Rails and you should have everything you need. On 9/28/05, Warren Seltzer <warrens-uf+uqdaZT6qTt3WsUyM9gg@public.gmane.org> wrote:> I''ve figured out I can set up either Apache 2.0.xx or WEBrick on my Windows XP system. > > But which version of MySql do I use and which connector, the pure C version that is for > MySQL 4.1 (and that probably won''t build on Windows) or the ruby-MySQL version and some > older version of MySql ? Which version ? > > Or does WEBrick contain all the MySql connectors I''ll need? > > Can I use MySql 4.0.21 with the ruby1.8.2/WEBrick for rails development? > > C:\>MySQL --version > MySQL Ver 12.22 Distrib 4.0.21, for Win95/Win98 (i32)... > > > Warren Seltzer > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Marlon "And I Sleep, and I dream of the person I might have been, and I''ll be free again And I Speak, like someone who''s been to the highest peaks, and back again And I Swear, that my grass is greener than anyones, until I believe again"
There''s some excellent documents out there on getting rails setup with windows. Check out the O''Reilly OnLamp.com "Rolling with Ruby on Rails" article: http://www.onlamp.com/lpt/a/5546 Michael -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Warren Seltzer Sent: Wednesday, September 28, 2005 8:56 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] RAILS on WINDOWS? I''ve figured out I can set up either Apache 2.0.xx or WEBrick on my Windows XP system. But which version of MySql do I use and which connector, the pure C version that is for MySQL 4.1 (and that probably won''t build on Windows) or the ruby-MySQL version and some older version of MySql ? Which version ? Or does WEBrick contain all the MySql connectors I''ll need? Can I use MySql 4.0.21 with the ruby1.8.2/WEBrick for rails development? C:\>MySQL --version MySQL Ver 12.22 Distrib 4.0.21, for Win95/Win98 (i32)... Warren Seltzer _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails