From efg at ncsu.edu Sat Aug 1 10:43:06 2009 From: efg at ncsu.edu (Ed Gehringer) Date: Sat, 01 Aug 2009 10:43:06 -0400 Subject: [raleigh.rb] Environment for teaching Ruby? In-Reply-To: <1AC4B1B7-71C0-405A-A5DF-481CE4948F48@iannopollo.com> References: <4A72F03A.7D16.00A7.0@gw.ncsu.edu> <16e20a2b0907311251k3d62469cxed9dee5288f36329@mail.gmail.com> <962483D2-6184-4828-9DA4-7DBC882C1E93@thewilliams.ws> <1AC4B1B7-71C0-405A-A5DF-481CE4948F48@iannopollo.com> Message-ID: <4A741C3F.7D16.00A7.0@gw.ncsu.edu> That is certainly the plan. We have about 7 classes on Ruby and only about 3 on Rails. -Ed >>> Steve Iannopollo 7/31/2009 11:42 PM >>> As having learned ruby (and programming for that matter) in the past 2.5 years, I would second (and third :-) the notion that learning OO using plain ruby is much less confusing than trying to teach OO through the elegant (and sometimes clever) code seen in the rails internals. And rails does such a good job emulating the style that ruby possesses that it was difficult at the beginning telling which methods or classes came from ruby and which ones came from rails. I would suggest diving straight into ruby, letting them get a decent handle on it, and then going through rails internals to see advanced ways of applying the basic OO concepts in ruby. Just my 2?. -------------- next part -------------- An HTML attachment was scrubbed... URL: From justin at thinkrelevance.com Wed Aug 12 13:39:20 2009 From: justin at thinkrelevance.com (Justin Gehtland) Date: Wed, 12 Aug 2009 13:39:20 -0400 Subject: [raleigh.rb] Job/Contract Opportunity Message-ID: Relevance is looking to connect one or two local Ruby/Rails devs up with a client of ours. The application is a Rails app for a funded startup, and they are looking to commit fulltime resources through at least the end of the year, and maybe farther as the relationship and the application progresses. As part of the work, you would do a kickoff week in the Relevance offices, working with our team on the handoff, and then be able to use us as both technical resources and a place to work some of the time during the first phase of development. If you are interested, please respond directly to me (justin AT thinkrelevance DOT com), attach a resume, and let me know what your preferred contractor rate is. Thanks! ---------------------------------- Justin Gehtland President Relevance, Inc. thinkrelevance.com 919.442.3030 ofc 919.824.5409 cel 866.577.4607 fax From rick.denatale at gmail.com Tue Aug 18 16:21:28 2009 From: rick.denatale at gmail.com (Rick DeNatale) Date: Tue, 18 Aug 2009 16:21:28 -0400 Subject: [raleigh.rb] Pre-meeting chow? Message-ID: Usual time and place? -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale From pelargir at gmail.com Tue Aug 18 16:29:33 2009 From: pelargir at gmail.com (Matthew Bass) Date: Tue, 18 Aug 2009 16:29:33 -0400 Subject: [raleigh.rb] Pre-meeting chow? In-Reply-To: References: Message-ID: <46DCAAD3-AC68-4E14-93F5-4E031367A236@gmail.com> On Aug 18, 2009, at 4:21 PM, Rick DeNatale wrote: > Usual time and place? Yah, I'm comin' Matthew -- Adeptware, Inc. www.adeptware.com From nathaniel at talbott.ws Tue Aug 18 16:41:35 2009 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Tue, 18 Aug 2009 16:41:35 -0400 Subject: [raleigh.rb] Pre-meeting chow? In-Reply-To: References: Message-ID: <4ce336a20908181341u3a1ba59y9d902324061275d7@mail.gmail.com> On Tue, Aug 18, 2009 at 4:21 PM, Rick DeNatale wrote: > Usual time and place? Yes! Sorry I didn't get this out sooner: As usual, anyone and everyone is invited to join us at Baja Burrito (http://bloat.me/u3sK) before the meeting tonight and chill while we eat some tasty mexican food (the quesadillas are excellent if you're not sure what to get). Folks usually start showing up around 5:30, and it's a great time to chat a bit and unwind before heading over to Red Hat for the meeting proper. Hope to see you there! -- Nathaniel Talbott <:((>< From seancribbs at gmail.com Wed Aug 19 13:30:14 2009 From: seancribbs at gmail.com (Sean Cribbs) Date: Wed, 19 Aug 2009 13:30:14 -0400 Subject: [raleigh.rb] Rails Rumble Message-ID: <4A8C36A6.60707@gmail.com> Anyone else doing the Rails Rumble this weekend? All of my team is remote, but I'd be up for hanging out while hacking. Sean Cribbs From nospam at tonyspencer.com Thu Aug 20 15:46:54 2009 From: nospam at tonyspencer.com (Tony Spencer) Date: Thu, 20 Aug 2009 15:46:54 -0400 Subject: [raleigh.rb] Gems driving me crazy Message-ID: I recently had a hard drive failure and had to suffer through the painful experience of setting up my Mac with Rails again. I've managed to get all my projects working again but I have a problem with gems when running a plain ruby file or attempting to use script/console in a Rails project: admin$ ./script/console ./script/../config/boot.rb:18:in `require': no such file to load -- rubygems (LoadError) In one forum about the problem someone said to compare these but I don't know what to do about the discrepancy : Macintosh:~ admin$ cat `which gem` | head -n 1 #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby Macintosh:~ admin$ ls -l `which ruby` -rwxr-xr-x 2 root admin 12680 Aug 5 12:12 /opt/local/bin/ruby I've installed ruby like so: sudo port install ruby186 and I installed rubygems from source by the hivelogic guide: http://hivelogic.com/articles/ruby-rails-leopard Any advice is much appreciated! From javery at infozerk.com Thu Aug 20 15:59:13 2009 From: javery at infozerk.com (James Avery) Date: Thu, 20 Aug 2009 15:59:13 -0400 Subject: [raleigh.rb] Gems driving me crazy In-Reply-To: References: Message-ID: <20af90580908201259u77863369o4d586950bcb8173c@mail.gmail.com> I ran into the same issue and fixed it by installing rubygems through macports: "sudo port install rb-rubygems" -James On Thu, Aug 20, 2009 at 3:46 PM, Tony Spencer wrote: > I recently had a hard drive failure and had to suffer through the painful > experience of setting up my Mac with Rails again. I've managed to get all my > projects working again but I have a problem with gems when running a plain > ruby file or attempting to use script/console in a Rails project: > > admin$ ./script/console > ./script/../config/boot.rb:18:in `require': no such file to load -- rubygems > (LoadError) > > In one forum about the problem someone said to compare these but I don't > know what to do about the discrepancy : > > Macintosh:~ admin$ cat `which gem` | head -n 1 > #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby > > Macintosh:~ admin$ ls -l `which ruby` > -rwxr-xr-x ?2 root ?admin ?12680 Aug ?5 12:12 /opt/local/bin/ruby > > I've installed ruby like so: > sudo port install ruby186 > > and I installed rubygems from source by the hivelogic guide: > ?http://hivelogic.com/articles/ruby-rails-leopard > > > Any advice is much appreciated! > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- James Avery Zerk Media - http://zerkmedia.com Infozerk Inc. - http://www.infozerk.com From tj at stank.us Thu Aug 20 16:06:45 2009 From: tj at stank.us (TJ Stankus) Date: Thu, 20 Aug 2009 16:06:45 -0400 Subject: [raleigh.rb] Gems driving me crazy In-Reply-To: References: Message-ID: What you have now is a mix of Macports and the compile-everything-myself approach from hivelogic. Assuming you want to stick with Macports.. If you run `port search rubygem` you'll see a package called rb-rubygems. Install that and `which gem` should now report /opt/local/bin/gem. You may have to re-install gems. There's probably some way to copy your gems over from /usr/local. Unless you have a lot already installed it's probably just simpler to re-install. Also, make sure /opt/local is before /usr/local on your PATH. HTH. -TJ On Thu, Aug 20, 2009 at 3:46 PM, Tony Spencer wrote: > I recently had a hard drive failure and had to suffer through the painful > experience of setting up my Mac with Rails again. I've managed to get all my > projects working again but I have a problem with gems when running a plain > ruby file or attempting to use script/console in a Rails project: > > admin$ ./script/console > ./script/../config/boot.rb:18:in `require': no such file to load -- rubygems > (LoadError) > > In one forum about the problem someone said to compare these but I don't > know what to do about the discrepancy : > > Macintosh:~ admin$ cat `which gem` | head -n 1 > #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby > > Macintosh:~ admin$ ls -l `which ruby` > -rwxr-xr-x ?2 root ?admin ?12680 Aug ?5 12:12 /opt/local/bin/ruby > > I've installed ruby like so: > sudo port install ruby186 > > and I installed rubygems from source by the hivelogic guide: > ?http://hivelogic.com/articles/ruby-rails-leopard > > > Any advice is much appreciated! > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From redinger at gmail.com Thu Aug 20 16:14:02 2009 From: redinger at gmail.com (Christopher Redinger) Date: Thu, 20 Aug 2009 16:14:02 -0400 Subject: [raleigh.rb] Gems driving me crazy In-Reply-To: References: Message-ID: <3032D5EB-0F91-465B-AEAF-BB348F099371@gmail.com> To follow up to TJ's message...do you have /usr/local/bin in your path before /usr/bin to pick up your custom gems install? The `which gem` response is telling you that it is picking up gem (probably) from /usr/bin/gem, which is using the default Mac install. The `which ruby` is telling you that you are picking up the MacPorts install. So, if you installed your version of gem in /usr/local/bin as Dan's article describes, it's either not in your path, or in your path after /usr/bin/gem. On Aug 20, 2009, at 4:06 PM, TJ Stankus wrote: > What you have now is a mix of Macports and the > compile-everything-myself approach from hivelogic. Assuming you want > to stick with Macports.. If you run `port search rubygem` you'll see a > package called rb-rubygems. Install that and `which gem` should now > report /opt/local/bin/gem. You may have to re-install gems. There's > probably some way to copy your gems over from /usr/local. Unless you > have a lot already installed it's probably just simpler to re-install. > Also, make sure /opt/local is before /usr/local on your PATH. > > HTH. > > -TJ > > On Thu, Aug 20, 2009 at 3:46 PM, Tony > Spencer wrote: >> I recently had a hard drive failure and had to suffer through the >> painful >> experience of setting up my Mac with Rails again. I've managed to >> get all my >> projects working again but I have a problem with gems when running >> a plain >> ruby file or attempting to use script/console in a Rails project: >> >> admin$ ./script/console >> ./script/../config/boot.rb:18:in `require': no such file to load -- >> rubygems >> (LoadError) >> >> In one forum about the problem someone said to compare these but I >> don't >> know what to do about the discrepancy : >> >> Macintosh:~ admin$ cat `which gem` | head -n 1 >> #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby >> >> Macintosh:~ admin$ ls -l `which ruby` >> -rwxr-xr-x 2 root admin 12680 Aug 5 12:12 /opt/local/bin/ruby >> >> I've installed ruby like so: >> sudo port install ruby186 >> >> and I installed rubygems from source by the hivelogic guide: >> http://hivelogic.com/articles/ruby-rails-leopard >> >> >> Any advice is much appreciated! >> >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -- Christopher Redinger http://agiledisciple.com Agile Ruby and Rails Development From JBrenner at BBandT.com Thu Aug 20 16:06:06 2009 From: JBrenner at BBandT.com (Brenner, Jonathon) Date: Thu, 20 Aug 2009 16:06:06 -0400 Subject: [raleigh.rb] Gems driving me crazy In-Reply-To: References: Message-ID: <91864382B2433640BA2A447041B3DBC3062C0662@wil-exmb01.bbtnet.com> Looks like a path problem to me. If you built rubygems from source with no options, the binary is probably located in /usr/local/bin, which should be up near the beginning of your path. Do the following at the command line: PATH=/usr/local/bin/:$PATH Then try running your console again. If everything is copasetic, add the path line to your ~/.bash_profile Alternately, you can install the rb-rubygems port -----Original Message----- From: raleigh-rb-members-bounces at rubyforge.org [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of Tony Spencer Sent: Thursday, August 20, 2009 3:47 PM To: The mailing list of raleigh.rb Subject: [raleigh.rb] Gems driving me crazy I recently had a hard drive failure and had to suffer through the painful experience of setting up my Mac with Rails again. I've managed to get all my projects working again but I have a problem with gems when running a plain ruby file or attempting to use script/console in a Rails project: admin$ ./script/console ./script/../config/boot.rb:18:in `require': no such file to load -- rubygems (LoadError) In one forum about the problem someone said to compare these but I don't know what to do about the discrepancy : Macintosh:~ admin$ cat `which gem` | head -n 1 #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby Macintosh:~ admin$ ls -l `which ruby` -rwxr-xr-x 2 root admin 12680 Aug 5 12:12 /opt/local/bin/ruby I've installed ruby like so: sudo port install ruby186 and I installed rubygems from source by the hivelogic guide: http://hivelogic.com/articles/ruby-rails-leopard Any advice is much appreciated! _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members From nospam at tonyspencer.com Thu Aug 20 16:18:45 2009 From: nospam at tonyspencer.com (Tony Spencer) Date: Thu, 20 Aug 2009 16:18:45 -0400 Subject: [raleigh.rb] Gems driving me crazy In-Reply-To: <3032D5EB-0F91-465B-AEAF-BB348F099371@gmail.com> References: <3032D5EB-0F91-465B-AEAF-BB348F099371@gmail.com> Message-ID: <381C3B2B-7B4C-4536-8CDA-BFB8386267DC@tonyspencer.com> This is what my path looks like: admin$ echo $PATH /opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/ local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/ bin On Aug 20, 2009, at 4:14 PM, Christopher Redinger wrote: > To follow up to TJ's message...do you have /usr/local/bin in your > path before /usr/bin to pick up your custom gems install? > > The `which gem` response is telling you that it is picking up gem > (probably) from /usr/bin/gem, which is using the default Mac > install. The `which ruby` is telling you that you are picking up the > MacPorts install. So, if you installed your version of gem in /usr/ > local/bin as Dan's article describes, it's either not in your path, > or in your path after /usr/bin/gem. > > On Aug 20, 2009, at 4:06 PM, TJ Stankus wrote: > >> What you have now is a mix of Macports and the >> compile-everything-myself approach from hivelogic. Assuming you want >> to stick with Macports.. If you run `port search rubygem` you'll >> see a >> package called rb-rubygems. Install that and `which gem` should now >> report /opt/local/bin/gem. You may have to re-install gems. There's >> probably some way to copy your gems over from /usr/local. Unless you >> have a lot already installed it's probably just simpler to re- >> install. >> Also, make sure /opt/local is before /usr/local on your PATH. >> >> HTH. >> >> -TJ >> >> On Thu, Aug 20, 2009 at 3:46 PM, Tony >> Spencer wrote: >>> I recently had a hard drive failure and had to suffer through the >>> painful >>> experience of setting up my Mac with Rails again. I've managed to >>> get all my >>> projects working again but I have a problem with gems when running >>> a plain >>> ruby file or attempting to use script/console in a Rails project: >>> >>> admin$ ./script/console >>> ./script/../config/boot.rb:18:in `require': no such file to load >>> -- rubygems >>> (LoadError) >>> >>> In one forum about the problem someone said to compare these but I >>> don't >>> know what to do about the discrepancy : >>> >>> Macintosh:~ admin$ cat `which gem` | head -n 1 >>> #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ >>> ruby >>> >>> Macintosh:~ admin$ ls -l `which ruby` >>> -rwxr-xr-x 2 root admin 12680 Aug 5 12:12 /opt/local/bin/ruby >>> >>> I've installed ruby like so: >>> sudo port install ruby186 >>> >>> and I installed rubygems from source by the hivelogic guide: >>> http://hivelogic.com/articles/ruby-rails-leopard >>> >>> >>> Any advice is much appreciated! >>> >>> >>> _______________________________________________ >>> raleigh-rb-members mailing list >>> raleigh-rb-members at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -- > Christopher Redinger > http://agiledisciple.com > Agile Ruby and Rails Development > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From nospam at tonyspencer.com Thu Aug 20 16:25:47 2009 From: nospam at tonyspencer.com (Tony Spencer) Date: Thu, 20 Aug 2009 16:25:47 -0400 Subject: [raleigh.rb] Gems driving me crazy In-Reply-To: <91864382B2433640BA2A447041B3DBC3062C0662@wil-exmb01.bbtnet.com> References: <91864382B2433640BA2A447041B3DBC3062C0662@wil-exmb01.bbtnet.com> Message-ID: <5E88C961-9E1E-49B5-AB5A-7389490D64AB@tonyspencer.com> According to "which gem" it is in /usr/bin/gem so I appended that to the front but still no dice: admin$ echo $PATH /usr/bin/gem:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/ sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/usr/local/ bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/ sbin:/usr/local/bin:/usr/X11/bin Macintosh:trieste2 admin$ ./script/console ./script/../config/boot.rb:18:in `require': no such file to load -- rubygems (LoadError) On Aug 20, 2009, at 4:06 PM, Brenner, Jonathon wrote: > Looks like a path problem to me. > > If you built rubygems from source with no options, the binary is > probably located in /usr/local/bin, which should be up near the > beginning of your path. Do the following at the command line: > > PATH=/usr/local/bin/:$PATH > > Then try running your console again. If everything is copasetic, add > the > path line to your ~/.bash_profile > > Alternately, you can install the rb-rubygems port > > -----Original Message----- > From: raleigh-rb-members-bounces at rubyforge.org > [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of Tony > Spencer > Sent: Thursday, August 20, 2009 3:47 PM > To: The mailing list of raleigh.rb > Subject: [raleigh.rb] Gems driving me crazy > > I recently had a hard drive failure and had to suffer through the > painful experience of setting up my Mac with Rails again. I've managed > to get all my projects working again but I have a problem with gems > when > running a plain ruby file or attempting to use script/console in a > Rails > project: > > admin$ ./script/console > ./script/../config/boot.rb:18:in `require': no such file to load -- > rubygems (LoadError) > > In one forum about the problem someone said to compare these but I > don't > know what to do about the discrepancy : > > Macintosh:~ admin$ cat `which gem` | head -n 1 > #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby > > Macintosh:~ admin$ ls -l `which ruby` > -rwxr-xr-x 2 root admin 12680 Aug 5 12:12 /opt/local/bin/ruby > > I've installed ruby like so: > sudo port install ruby186 > > and I installed rubygems from source by the hivelogic guide: > http://hivelogic.com/articles/ruby-rails-leopard > > > Any advice is much appreciated! > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From nospam at tonyspencer.com Thu Aug 20 16:30:37 2009 From: nospam at tonyspencer.com (Tony Spencer) Date: Thu, 20 Aug 2009 16:30:37 -0400 Subject: [raleigh.rb] Gems driving me crazy In-Reply-To: References: Message-ID: Uggh. I tried that (sudo port install rb-rubygems) and it spewed a bunch of mess ending with: Error: The following dependencies failed to build: ruby Error: Status 1 encountered during processing. On Aug 20, 2009, at 4:06 PM, TJ Stankus wrote: > What you have now is a mix of Macports and the > compile-everything-myself approach from hivelogic. Assuming you want > to stick with Macports.. If you run `port search rubygem` you'll see a > package called rb-rubygems. Install that and `which gem` should now > report /opt/local/bin/gem. You may have to re-install gems. There's > probably some way to copy your gems over from /usr/local. Unless you > have a lot already installed it's probably just simpler to re-install. > Also, make sure /opt/local is before /usr/local on your PATH. > > HTH. > > -TJ > > On Thu, Aug 20, 2009 at 3:46 PM, Tony > Spencer wrote: >> I recently had a hard drive failure and had to suffer through the >> painful >> experience of setting up my Mac with Rails again. I've managed to >> get all my >> projects working again but I have a problem with gems when running >> a plain >> ruby file or attempting to use script/console in a Rails project: >> >> admin$ ./script/console >> ./script/../config/boot.rb:18:in `require': no such file to load -- >> rubygems >> (LoadError) >> >> In one forum about the problem someone said to compare these but I >> don't >> know what to do about the discrepancy : >> >> Macintosh:~ admin$ cat `which gem` | head -n 1 >> #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby >> >> Macintosh:~ admin$ ls -l `which ruby` >> -rwxr-xr-x 2 root admin 12680 Aug 5 12:12 /opt/local/bin/ruby >> >> I've installed ruby like so: >> sudo port install ruby186 >> >> and I installed rubygems from source by the hivelogic guide: >> http://hivelogic.com/articles/ruby-rails-leopard >> >> >> Any advice is much appreciated! >> >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From nospam at tonyspencer.com Thu Aug 20 17:16:51 2009 From: nospam at tonyspencer.com (Tony Spencer) Date: Thu, 20 Aug 2009 17:16:51 -0400 Subject: [raleigh.rb] Gems driving me crazy In-Reply-To: <5E88C961-9E1E-49B5-AB5A-7389490D64AB@tonyspencer.com> References: <91864382B2433640BA2A447041B3DBC3062C0662@wil-exmb01.bbtnet.com> <5E88C961-9E1E-49B5-AB5A-7389490D64AB@tonyspencer.com> Message-ID: I can't understand why gems work in my rails app, I can run things like gem-v in Terminal, but require 'rubygems' won't work in a ruby file run from bash. On Aug 20, 2009, at 4:25 PM, Tony Spencer wrote: > According to "which gem" it is in /usr/bin/gem so I appended that to > the front but still no dice: > > admin$ echo $PATH > /usr/bin/gem:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/ > local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/usr/ > local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/ > sbin:/sbin:/usr/local/bin:/usr/X11/bin > > Macintosh:trieste2 admin$ ./script/console > ./script/../config/boot.rb:18:in `require': no such file to load -- > rubygems (LoadError) > > > On Aug 20, 2009, at 4:06 PM, Brenner, Jonathon wrote: > >> Looks like a path problem to me. >> >> If you built rubygems from source with no options, the binary is >> probably located in /usr/local/bin, which should be up near the >> beginning of your path. Do the following at the command line: >> >> PATH=/usr/local/bin/:$PATH >> >> Then try running your console again. If everything is copasetic, >> add the >> path line to your ~/.bash_profile >> >> Alternately, you can install the rb-rubygems port >> >> -----Original Message----- >> From: raleigh-rb-members-bounces at rubyforge.org >> [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of Tony >> Spencer >> Sent: Thursday, August 20, 2009 3:47 PM >> To: The mailing list of raleigh.rb >> Subject: [raleigh.rb] Gems driving me crazy >> >> I recently had a hard drive failure and had to suffer through the >> painful experience of setting up my Mac with Rails again. I've >> managed >> to get all my projects working again but I have a problem with gems >> when >> running a plain ruby file or attempting to use script/console in a >> Rails >> project: >> >> admin$ ./script/console >> ./script/../config/boot.rb:18:in `require': no such file to load -- >> rubygems (LoadError) >> >> In one forum about the problem someone said to compare these but I >> don't >> know what to do about the discrepancy : >> >> Macintosh:~ admin$ cat `which gem` | head -n 1 >> #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby >> >> Macintosh:~ admin$ ls -l `which ruby` >> -rwxr-xr-x 2 root admin 12680 Aug 5 12:12 /opt/local/bin/ruby >> >> I've installed ruby like so: >> sudo port install ruby186 >> >> and I installed rubygems from source by the hivelogic guide: >> http://hivelogic.com/articles/ruby-rails-leopard >> >> >> Any advice is much appreciated! >> >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From kagrama at gmail.com Thu Aug 20 18:28:09 2009 From: kagrama at gmail.com (Khaled Agrama) Date: Thu, 20 Aug 2009 18:28:09 -0400 Subject: [raleigh.rb] Gems driving me crazy In-Reply-To: References: <91864382B2433640BA2A447041B3DBC3062C0662@wil-exmb01.bbtnet.com> <5E88C961-9E1E-49B5-AB5A-7389490D64AB@tonyspencer.com> Message-ID: You probably haven't installed rubygems into your macports ruby. Try doing a "ls /opt/local/lib/ruby/site_ruby/1.8/". In my case, I have a rubygems.rb in there. Try downloading the latest rubygems from rubygems.org, unzip, and run "sudo ruby setup.rb". HTH Khaled If "which ruby" is giving you /opt/local/bin/ruby, and "which gem" is giving you /usr/bin/gem, then your rubygems So "which gem" gives you usr/bin/gem. On Aug 20, 2009, at 5:16 PM, Tony Spencer wrote: > I can't understand why gems work in my rails app, I can run things > like gem-v in Terminal, but require 'rubygems' won't work in a ruby > file run from bash. > > On Aug 20, 2009, at 4:25 PM, Tony Spencer wrote: > >> According to "which gem" it is in /usr/bin/gem so I appended that >> to the front but still no dice: >> >> admin$ echo $PATH >> /usr/bin/gem:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/ >> local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/usr/ >> local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/ >> sbin:/sbin:/usr/local/bin:/usr/X11/bin >> >> Macintosh:trieste2 admin$ ./script/console >> ./script/../config/boot.rb:18:in `require': no such file to load -- >> rubygems (LoadError) >> >> >> On Aug 20, 2009, at 4:06 PM, Brenner, Jonathon wrote: >> >>> Looks like a path problem to me. >>> >>> If you built rubygems from source with no options, the binary is >>> probably located in /usr/local/bin, which should be up near the >>> beginning of your path. Do the following at the command line: >>> >>> PATH=/usr/local/bin/:$PATH >>> >>> Then try running your console again. If everything is copasetic, >>> add the >>> path line to your ~/.bash_profile >>> >>> Alternately, you can install the rb-rubygems port >>> >>> -----Original Message----- >>> From: raleigh-rb-members-bounces at rubyforge.org >>> [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of Tony >>> Spencer >>> Sent: Thursday, August 20, 2009 3:47 PM >>> To: The mailing list of raleigh.rb >>> Subject: [raleigh.rb] Gems driving me crazy >>> >>> I recently had a hard drive failure and had to suffer through the >>> painful experience of setting up my Mac with Rails again. I've >>> managed >>> to get all my projects working again but I have a problem with >>> gems when >>> running a plain ruby file or attempting to use script/console in a >>> Rails >>> project: >>> >>> admin$ ./script/console >>> ./script/../config/boot.rb:18:in `require': no such file to load -- >>> rubygems (LoadError) >>> >>> In one forum about the problem someone said to compare these but I >>> don't >>> know what to do about the discrepancy : >>> >>> Macintosh:~ admin$ cat `which gem` | head -n 1 >>> #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ >>> ruby >>> >>> Macintosh:~ admin$ ls -l `which ruby` >>> -rwxr-xr-x 2 root admin 12680 Aug 5 12:12 /opt/local/bin/ruby >>> >>> I've installed ruby like so: >>> sudo port install ruby186 >>> >>> and I installed rubygems from source by the hivelogic guide: >>> http://hivelogic.com/articles/ruby-rails-leopard >>> >>> >>> Any advice is much appreciated! >>> >>> >>> _______________________________________________ >>> raleigh-rb-members mailing list >>> raleigh-rb-members at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>> >>> >>> _______________________________________________ >>> raleigh-rb-members mailing list >>> raleigh-rb-members at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>> >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From nospam at tonyspencer.com Thu Aug 20 21:03:47 2009 From: nospam at tonyspencer.com (Tony Spencer) Date: Thu, 20 Aug 2009 21:03:47 -0400 Subject: [raleigh.rb] Gems driving me crazy In-Reply-To: References: <91864382B2433640BA2A447041B3DBC3062C0662@wil-exmb01.bbtnet.com> <5E88C961-9E1E-49B5-AB5A-7389490D64AB@tonyspencer.com> Message-ID: <4DF32083-90DB-44ED-9A89-697E2269D49C@tonyspencer.com> That did it! Thanks very much On Aug 20, 2009, at 6:28 PM, Khaled Agrama wrote: > You probably haven't installed rubygems into your macports ruby. > > Try doing a "ls /opt/local/lib/ruby/site_ruby/1.8/". In my case, I > have a rubygems.rb in there. > > Try downloading the latest rubygems from rubygems.org, unzip, and > run "sudo ruby setup.rb". > > HTH > Khaled > > > > > If "which ruby" is giving you /opt/local/bin/ruby, and "which gem" > is giving you /usr/bin/gem, then your rubygems > > So "which gem" gives you usr/bin/gem. > > On Aug 20, 2009, at 5:16 PM, Tony Spencer wrote: > >> I can't understand why gems work in my rails app, I can run things >> like gem-v in Terminal, but require 'rubygems' won't work in a ruby >> file run from bash. >> >> On Aug 20, 2009, at 4:25 PM, Tony Spencer wrote: >> >>> According to "which gem" it is in /usr/bin/gem so I appended that >>> to the front but still no dice: >>> >>> admin$ echo $PATH >>> /usr/bin/gem:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/ >>> local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/ >>> usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/ >>> usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin >>> >>> Macintosh:trieste2 admin$ ./script/console >>> ./script/../config/boot.rb:18:in `require': no such file to load >>> -- rubygems (LoadError) >>> >>> >>> On Aug 20, 2009, at 4:06 PM, Brenner, Jonathon wrote: >>> >>>> Looks like a path problem to me. >>>> >>>> If you built rubygems from source with no options, the binary is >>>> probably located in /usr/local/bin, which should be up near the >>>> beginning of your path. Do the following at the command line: >>>> >>>> PATH=/usr/local/bin/:$PATH >>>> >>>> Then try running your console again. If everything is copasetic, >>>> add the >>>> path line to your ~/.bash_profile >>>> >>>> Alternately, you can install the rb-rubygems port >>>> >>>> -----Original Message----- >>>> From: raleigh-rb-members-bounces at rubyforge.org >>>> [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of Tony >>>> Spencer >>>> Sent: Thursday, August 20, 2009 3:47 PM >>>> To: The mailing list of raleigh.rb >>>> Subject: [raleigh.rb] Gems driving me crazy >>>> >>>> I recently had a hard drive failure and had to suffer through the >>>> painful experience of setting up my Mac with Rails again. I've >>>> managed >>>> to get all my projects working again but I have a problem with >>>> gems when >>>> running a plain ruby file or attempting to use script/console in >>>> a Rails >>>> project: >>>> >>>> admin$ ./script/console >>>> ./script/../config/boot.rb:18:in `require': no such file to load -- >>>> rubygems (LoadError) >>>> >>>> In one forum about the problem someone said to compare these but >>>> I don't >>>> know what to do about the discrepancy : >>>> >>>> Macintosh:~ admin$ cat `which gem` | head -n 1 >>>> #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ >>>> ruby >>>> >>>> Macintosh:~ admin$ ls -l `which ruby` >>>> -rwxr-xr-x 2 root admin 12680 Aug 5 12:12 /opt/local/bin/ruby >>>> >>>> I've installed ruby like so: >>>> sudo port install ruby186 >>>> >>>> and I installed rubygems from source by the hivelogic guide: >>>> http://hivelogic.com/articles/ruby-rails-leopard >>>> >>>> >>>> Any advice is much appreciated! >>>> >>>> >>>> _______________________________________________ >>>> raleigh-rb-members mailing list >>>> raleigh-rb-members at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>>> >>>> >>>> _______________________________________________ >>>> raleigh-rb-members mailing list >>>> raleigh-rb-members at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>>> >>> >>> _______________________________________________ >>> raleigh-rb-members mailing list >>> raleigh-rb-members at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From crnixon at gmail.com Thu Aug 20 20:55:54 2009 From: crnixon at gmail.com (Clinton R. Nixon) Date: Thu, 20 Aug 2009 20:55:54 -0400 Subject: [raleigh.rb] Rails Rumble In-Reply-To: <4A8C36A6.60707@gmail.com> References: <4A8C36A6.60707@gmail.com> Message-ID: On Wed, Aug 19, 2009 at 1:30 PM, Sean Cribbs wrote: > Anyone else doing the Rails Rumble this weekend? ?All of my team is remote, > but I'd be up for hanging out while hacking. I'm supposed to be doing it, but have several things cutting into my time. Still, I'd love to hang out and hack. Are you going to be at CCC on Saturday? Also, if anyone wants a motivated developer to pitch in last minute, let me know. I'm not super-enthused about my solo idea. - Clinton From tj at stank.us Thu Aug 20 21:41:02 2009 From: tj at stank.us (TJ Stankus) Date: Thu, 20 Aug 2009 21:41:02 -0400 Subject: [raleigh.rb] Rails Rumble In-Reply-To: References: <4A8C36A6.60707@gmail.com> Message-ID: If you guys will be at CCC I'd likely show up either Saturday afternoon or evening. -TJ On Thu, Aug 20, 2009 at 8:55 PM, Clinton R. Nixon wrote: > On Wed, Aug 19, 2009 at 1:30 PM, Sean Cribbs wrote: >> Anyone else doing the Rails Rumble this weekend? ?All of my team is remote, >> but I'd be up for hanging out while hacking. > > I'm supposed to be doing it, but have several things cutting into my > time. Still, I'd love to hang out and hack. Are you going to be at CCC > on Saturday? > > Also, if anyone wants a motivated developer to pitch in last minute, > let me know. I'm not super-enthused about my solo idea. > > - Clinton > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From rick.denatale at gmail.com Fri Aug 21 16:39:00 2009 From: rick.denatale at gmail.com (Rick DeNatale) Date: Fri, 21 Aug 2009 16:39:00 -0400 Subject: [raleigh.rb] JQuery conceptual speed bump Message-ID: OK, So I decided to play with JQuery a bit by converting a very simple personal rails app which uses very little javascript right now. I looked at the JRails plugin, and decided that it would be a better learning experience to just use JQuery and work from the ground up. I'm trying to observe a field form. After googling around a bit it looked like the delayedObserver plugin http://code.google.com/p/jquery-utils/wiki/DelayedObserver would be useful as a replacement for prototypes element observer. Okay, so I downloaded jquery and jquery-utils into public/javascripts In my application layout html, I have <%= javascript_include_tag ['jquery-1.3.2.min', 'jquery.utils', 'application'] %> And in my application.js $(document).ready(function() { $('#movie_title').delayedObserver(function(value, object) { alert('changed' + value); }) }); Now, I DO have a form field with the id movie_title on the page: But for some reason, I can't get the observer to trigger. If I put an alert before the delayedObserver call in the document ready block, I can see that delayedObserver is being called, but when I type into the field nothing happens. Firebug is set to break on all errors and nothing is showing in the console. Any ideas/suggestions? -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale From larry.karnowski at gmail.com Fri Aug 21 16:47:08 2009 From: larry.karnowski at gmail.com (Larry Karnowski) Date: Fri, 21 Aug 2009 16:47:08 -0400 Subject: [raleigh.rb] JQuery conceptual speed bump In-Reply-To: References: Message-ID: <2b27183e0908211347s1d720b93va20bae7ce09f2388@mail.gmail.com> Rick, Your jQuery code is looking good. I'm not familiar with the delayedObserver plugin, though, so it might be the culprit. Discard it for the minute and see if you can get a simpler example working, maybe by changing the "delayedObserver" call to "change" or "mouseover" or something. Good luck figuring it out, Larry On Fri, Aug 21, 2009 at 4:39 PM, Rick DeNatale wrote: > OK, So I decided to play with JQuery a bit by converting a very simple > personal rails app which uses very little javascript right now. > > I looked at the JRails plugin, and decided that it would be a better > learning experience to just use JQuery and work from the ground up. > > I'm trying to observe a field form. ?After googling around a bit it > looked like the delayedObserver plugin > http://code.google.com/p/jquery-utils/wiki/DelayedObserver would be > useful as a replacement for prototypes element observer. > > Okay, so > > I downloaded jquery and jquery-utils into public/javascripts > > In my application layout html, I have > > ? ? ? ?<%= javascript_include_tag ['jquery-1.3.2.min', 'jquery.utils', > 'application'] %> > > And in my application.js > > $(document).ready(function() { > ? ?$('#movie_title').delayedObserver(function(value, object) { > ? ? ? ?alert('changed' + value); > ? ?}) > }); > > Now, I DO have a form field with the id movie_title on the page: > ? ? size="30" type="text" /> > > But for some reason, I can't get the observer to trigger. > > If I put an alert before the delayedObserver call in the document > ready block, I can see that delayedObserver is being called, but when > I type into the field nothing happens. > > Firebug is set to break on all errors and nothing is showing in the console. > > Any ideas/suggestions? > > > > -- > Rick DeNatale > > Blog: http://talklikeaduck.denhaven2.com/ > Twitter: http://twitter.com/RickDeNatale > WWR: http://www.workingwithrails.com/person/9021-rick-denatale > LinkedIn: http://www.linkedin.com/in/rickdenatale > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Larry Karnowski Work: http://thinkrelevance.com Geek: http://tech.hickorywind.org Music: http://www.hickorywind.org From steve at iannopollo.com Fri Aug 21 16:54:05 2009 From: steve at iannopollo.com (Steve Iannopollo) Date: Fri, 21 Aug 2009 16:54:05 -0400 Subject: [raleigh.rb] JQuery conceptual speed bump In-Reply-To: <2b27183e0908211347s1d720b93va20bae7ce09f2388@mail.gmail.com> References: <2b27183e0908211347s1d720b93va20bae7ce09f2388@mail.gmail.com> Message-ID: +1 for just trying "change" or "mouseover" (or something like that). My understanding is that $(document).ready(function() { $('#movie_title').change(function(value, object) { alert('changed' + value); }) }); is a pretty close substitute for the Prototype-y: Element.observe(document, "dom:loaded", function(loadedEvent) { $("movie_title").observe("change", function(changeEvent) { alert("changed" + changeEvent.target.getValue()); }); }); Hope this helps. -Steve On Aug 21, 2009, at 4:47 PM, Larry Karnowski wrote: > Rick, > Your jQuery code is looking good. I'm not familiar with the > delayedObserver plugin, though, so it might be the culprit. Discard > it for the minute and see if you can get a simpler example working, > maybe by changing the "delayedObserver" call to "change" or > "mouseover" or something. > > Good luck figuring it out, > Larry > > > On Fri, Aug 21, 2009 at 4:39 PM, Rick > DeNatale wrote: >> OK, So I decided to play with JQuery a bit by converting a very >> simple >> personal rails app which uses very little javascript right now. >> >> I looked at the JRails plugin, and decided that it would be a better >> learning experience to just use JQuery and work from the ground up. >> >> I'm trying to observe a field form. After googling around a bit it >> looked like the delayedObserver plugin >> http://code.google.com/p/jquery-utils/wiki/DelayedObserver would be >> useful as a replacement for prototypes element observer. >> >> Okay, so >> >> I downloaded jquery and jquery-utils into public/javascripts >> >> In my application layout html, I have >> >> <%= javascript_include_tag ['jquery-1.3.2.min', >> 'jquery.utils', >> 'application'] %> >> >> And in my application.js >> >> $(document).ready(function() { >> $('#movie_title').delayedObserver(function(value, object) { >> alert('changed' + value); >> }) >> }); >> >> Now, I DO have a form field with the id movie_title on the page: >> > size="30" type="text" /> >> >> But for some reason, I can't get the observer to trigger. >> >> If I put an alert before the delayedObserver call in the document >> ready block, I can see that delayedObserver is being called, but when >> I type into the field nothing happens. >> >> Firebug is set to break on all errors and nothing is showing in the >> console. >> >> Any ideas/suggestions? >> >> >> >> -- >> Rick DeNatale >> >> Blog: http://talklikeaduck.denhaven2.com/ >> Twitter: http://twitter.com/RickDeNatale >> WWR: http://www.workingwithrails.com/person/9021-rick-denatale >> LinkedIn: http://www.linkedin.com/in/rickdenatale >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > > > > -- > Larry Karnowski > Work: http://thinkrelevance.com > Geek: http://tech.hickorywind.org > Music: http://www.hickorywind.org > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From redinger at gmail.com Fri Aug 21 16:58:41 2009 From: redinger at gmail.com (Christopher Redinger) Date: Fri, 21 Aug 2009 16:58:41 -0400 Subject: [raleigh.rb] JQuery conceptual speed bump In-Reply-To: References: Message-ID: <04C3BED3-5882-4CFF-BFAA-23130D2E2D54@gmail.com> I just dropped the jquery-utils.js and your sample code into my project, and it worked just fine as is. Not sure if that helps or not... If you want to throw your project on github I don't mind running it locally and seeing if it works for me. On Aug 21, 2009, at 4:39 PM, Rick DeNatale wrote: > OK, So I decided to play with JQuery a bit by converting a very simple > personal rails app which uses very little javascript right now. > > I looked at the JRails plugin, and decided that it would be a better > learning experience to just use JQuery and work from the ground up. > > I'm trying to observe a field form. After googling around a bit it > looked like the delayedObserver plugin > http://code.google.com/p/jquery-utils/wiki/DelayedObserver would be > useful as a replacement for prototypes element observer. > > Okay, so > > I downloaded jquery and jquery-utils into public/javascripts > > In my application layout html, I have > > <%= javascript_include_tag ['jquery-1.3.2.min', 'jquery.utils', > 'application'] %> > > And in my application.js > > $(document).ready(function() { > $('#movie_title').delayedObserver(function(value, object) { > alert('changed' + value); > }) > }); > > Now, I DO have a form field with the id movie_title on the page: > size="30" type="text" /> > > But for some reason, I can't get the observer to trigger. > > If I put an alert before the delayedObserver call in the document > ready block, I can see that delayedObserver is being called, but when > I type into the field nothing happens. > > Firebug is set to break on all errors and nothing is showing in the > console. > > Any ideas/suggestions? > > > > -- > Rick DeNatale > > Blog: http://talklikeaduck.denhaven2.com/ > Twitter: http://twitter.com/RickDeNatale > WWR: http://www.workingwithrails.com/person/9021-rick-denatale > LinkedIn: http://www.linkedin.com/in/rickdenatale > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -- Christopher Redinger http://agiledisciple.com Agile Ruby and Rails Development From larry.karnowski at gmail.com Fri Aug 21 17:06:28 2009 From: larry.karnowski at gmail.com (Larry Karnowski) Date: Fri, 21 Aug 2009 17:06:28 -0400 Subject: [raleigh.rb] JQuery conceptual speed bump In-Reply-To: References: Message-ID: <2b27183e0908211406n60ae0c9al3a961386c5660a5a@mail.gmail.com> Rick, Hate to go here, but what browser are you using? Not Safari 4 is it? I've had some flakiness with it lately (based on the load ordering). If you're using Safari, try Firefox instead. Grasping at straws, Larry On Fri, Aug 21, 2009 at 4:39 PM, Rick DeNatale wrote: > OK, So I decided to play with JQuery a bit by converting a very simple > personal rails app which uses very little javascript right now. > > I looked at the JRails plugin, and decided that it would be a better > learning experience to just use JQuery and work from the ground up. > > I'm trying to observe a field form. ?After googling around a bit it > looked like the delayedObserver plugin > http://code.google.com/p/jquery-utils/wiki/DelayedObserver would be > useful as a replacement for prototypes element observer. > > Okay, so > > I downloaded jquery and jquery-utils into public/javascripts > > In my application layout html, I have > > ? ? ? ?<%= javascript_include_tag ['jquery-1.3.2.min', 'jquery.utils', > 'application'] %> > > And in my application.js > > $(document).ready(function() { > ? ?$('#movie_title').delayedObserver(function(value, object) { > ? ? ? ?alert('changed' + value); > ? ?}) > }); > > Now, I DO have a form field with the id movie_title on the page: > ? ? size="30" type="text" /> > > But for some reason, I can't get the observer to trigger. > > If I put an alert before the delayedObserver call in the document > ready block, I can see that delayedObserver is being called, but when > I type into the field nothing happens. > > Firebug is set to break on all errors and nothing is showing in the console. > > Any ideas/suggestions? > > > > -- > Rick DeNatale > > Blog: http://talklikeaduck.denhaven2.com/ > Twitter: http://twitter.com/RickDeNatale > WWR: http://www.workingwithrails.com/person/9021-rick-denatale > LinkedIn: http://www.linkedin.com/in/rickdenatale > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Larry Karnowski Work: http://thinkrelevance.com Geek: http://tech.hickorywind.org Music: http://www.hickorywind.org From rick.denatale at gmail.com Fri Aug 21 17:16:00 2009 From: rick.denatale at gmail.com (Rick DeNatale) Date: Fri, 21 Aug 2009 17:16:00 -0400 Subject: [raleigh.rb] JQuery conceptual speed bump In-Reply-To: <2b27183e0908211406n60ae0c9al3a961386c5660a5a@mail.gmail.com> References: <2b27183e0908211406n60ae0c9al3a961386c5660a5a@mail.gmail.com> Message-ID: I'm trying it with both Safari 4 and Firefox 3.0.11 (which just updated for me in the past day or so). On Fri, Aug 21, 2009 at 5:06 PM, Larry Karnowski wrote: > Rick, > Hate to go here, but what browser are you using? ?Not Safari 4 is it? > I've had some flakiness with it lately (based on the load ordering). > If you're using Safari, try Firefox instead. > > Grasping at straws, > Larry > > On Fri, Aug 21, 2009 at 4:39 PM, Rick DeNatale wrote: >> OK, So I decided to play with JQuery a bit by converting a very simple >> personal rails app which uses very little javascript right now. >> >> I looked at the JRails plugin, and decided that it would be a better >> learning experience to just use JQuery and work from the ground up. >> >> I'm trying to observe a field form. ?After googling around a bit it >> looked like the delayedObserver plugin >> http://code.google.com/p/jquery-utils/wiki/DelayedObserver would be >> useful as a replacement for prototypes element observer. >> >> Okay, so >> >> I downloaded jquery and jquery-utils into public/javascripts >> >> In my application layout html, I have >> >> ? ? ? ?<%= javascript_include_tag ['jquery-1.3.2.min', 'jquery.utils', >> 'application'] %> >> >> And in my application.js >> >> $(document).ready(function() { >> ? ?$('#movie_title').delayedObserver(function(value, object) { >> ? ? ? ?alert('changed' + value); >> ? ?}) >> }); >> >> Now, I DO have a form field with the id movie_title on the page: >> ? ?> size="30" type="text" /> >> >> But for some reason, I can't get the observer to trigger. >> >> If I put an alert before the delayedObserver call in the document >> ready block, I can see that delayedObserver is being called, but when >> I type into the field nothing happens. >> >> Firebug is set to break on all errors and nothing is showing in the console. >> >> Any ideas/suggestions? >> >> >> >> -- >> Rick DeNatale >> >> Blog: http://talklikeaduck.denhaven2.com/ >> Twitter: http://twitter.com/RickDeNatale >> WWR: http://www.workingwithrails.com/person/9021-rick-denatale >> LinkedIn: http://www.linkedin.com/in/rickdenatale >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > > > > -- > Larry Karnowski > Work: http://thinkrelevance.com > Geek: http://tech.hickorywind.org > Music: http://www.hickorywind.org > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale From rick.denatale at gmail.com Fri Aug 21 17:27:05 2009 From: rick.denatale at gmail.com (Rick DeNatale) Date: Fri, 21 Aug 2009 17:27:05 -0400 Subject: [raleigh.rb] JQuery conceptual speed bump In-Reply-To: References: <2b27183e0908211406n60ae0c9al3a961386c5660a5a@mail.gmail.com> Message-ID: Okay, So I changed to $(document).ready(function() { $('#movie_title').keyup(function(eventObject) { alert('changed'); }) }); And it triggers in Safari, but NOT Firefox!!! I need to capture changes to the field for an autocomplete like feature, so change won't work since it only triggers when focus changes. A little progress but how far to go? -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale From seancribbs at gmail.com Fri Aug 21 17:38:48 2009 From: seancribbs at gmail.com (Sean Cribbs) Date: Fri, 21 Aug 2009 17:38:48 -0400 Subject: [raleigh.rb] Rails Rumble In-Reply-To: References: <4A8C36A6.60707@gmail.com> Message-ID: <4A8F13E8.3080201@gmail.com> I'll contact Brian and see about letting us in or getting a FOB for the weekend. Sean TJ Stankus wrote: > If you guys will be at CCC I'd likely show up either Saturday > afternoon or evening. > > -TJ > > On Thu, Aug 20, 2009 at 8:55 PM, Clinton R. Nixon wrote: > >> On Wed, Aug 19, 2009 at 1:30 PM, Sean Cribbs wrote: >> >>> Anyone else doing the Rails Rumble this weekend? All of my team is remote, >>> but I'd be up for hanging out while hacking. >>> >> I'm supposed to be doing it, but have several things cutting into my >> time. Still, I'd love to hang out and hack. Are you going to be at CCC >> on Saturday? >> >> Also, if anyone wants a motivated developer to pitch in last minute, >> let me know. I'm not super-enthused about my solo idea. >> >> - Clinton >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From info at lojic.com Fri Aug 21 17:48:15 2009 From: info at lojic.com (Brian Adkins) Date: Fri, 21 Aug 2009 17:48:15 -0400 Subject: [raleigh.rb] JQuery conceptual speed bump In-Reply-To: References: Message-ID: <4A8F161F.3050405@lojic.com> Rick DeNatale wrote, On 8/21/09 4:39 PM: > [...] > $(document).ready(function() { > $('#movie_title').delayedObserver(function(value, object) { > alert('changed' + value); > }) > }); Rick, I have: jQuery('#person_username').delayedObserver(0.75, function(value, object) { check_username('<%= @person.id %>'); }); Don't you need a first argument that specifies the delay time? -- Brian Adkins Lojic Technologies, LLC http://lojic.com/ From curtismitchell at gmail.com Fri Aug 21 17:49:52 2009 From: curtismitchell at gmail.com (Curtis Mitchell) Date: Fri, 21 Aug 2009 21:49:52 +0000 Subject: [raleigh.rb] JQuery conceptual speed bump In-Reply-To: References: <2b27183e0908211406n60ae0c9al3a961386c5660a5a@mail.gmail.com> Message-ID: <1169266389-1250891366-cardhu_decombobulator_blackberry.rim.net-1665422852-@bxe1171.bisx.prod.on.blackberry> Would the autocomplete plugin help? You can always change its behavior to suit your needs. Sorry for not sending a link. This was sent from the brokeberry. Sent from my mobile -----Original Message----- From: Rick DeNatale Date: Fri, 21 Aug 2009 17:27:05 To: The mailing list of raleigh.rb Subject: Re: [raleigh.rb] JQuery conceptual speed bump Okay, So I changed to $(document).ready(function() { $('#movie_title').keyup(function(eventObject) { alert('changed'); }) }); And it triggers in Safari, but NOT Firefox!!! I need to capture changes to the field for an autocomplete like feature, so change won't work since it only triggers when focus changes. A little progress but how far to go? -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members From rick.denatale at gmail.com Fri Aug 21 17:55:30 2009 From: rick.denatale at gmail.com (Rick DeNatale) Date: Fri, 21 Aug 2009 17:55:30 -0400 Subject: [raleigh.rb] JQuery conceptual speed bump In-Reply-To: <4A8F161F.3050405@lojic.com> References: <4A8F161F.3050405@lojic.com> Message-ID: Not with the latest version. I'd tried it the other way at first and then found a comment on the doc page. On Fri, Aug 21, 2009 at 5:48 PM, Brian Adkins wrote: > Rick DeNatale wrote, On 8/21/09 4:39 PM: >> >> [...] >> $(document).ready(function() { >> ? ?$('#movie_title').delayedObserver(function(value, object) { >> ? ? ? ?alert('changed' + value); >> ? ?}) >> }); > > Rick, I have: > > ?jQuery('#person_username').delayedObserver(0.75, > ? ?function(value, object) { > ? ? ?check_username('<%= @person.id %>'); > ? ?}); > > Don't you need a first argument that specifies the delay time? > > -- > Brian Adkins > Lojic Technologies, LLC > http://lojic.com/ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale From rick.denatale at gmail.com Fri Aug 21 17:56:52 2009 From: rick.denatale at gmail.com (Rick DeNatale) Date: Fri, 21 Aug 2009 17:56:52 -0400 Subject: [raleigh.rb] JQuery conceptual speed bump In-Reply-To: References: <2b27183e0908211406n60ae0c9al3a961386c5660a5a@mail.gmail.com> Message-ID: Okay now with this: $(document).ready(function() { $('#movie_title').keyup(function(eventObject) { var title = this.value; $('#imdb_a').replaceWith( 'Find \"' + title + '\" in the IMDB'); if (title.length > 0) { $('#imdb_url_link').show() } else { $('#imdb_url_link').hide() } }) }); It works like it did before, but just on Safari 4. I'm also not sure if I can out type it. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale From rick.denatale at gmail.com Fri Aug 21 20:34:23 2009 From: rick.denatale at gmail.com (Rick DeNatale) Date: Fri, 21 Aug 2009 20:34:23 -0400 Subject: [raleigh.rb] JQuery conceptual speed bump In-Reply-To: References: <2b27183e0908211406n60ae0c9al3a961386c5660a5a@mail.gmail.com> Message-ID: And FWIW, I just tried it with the latest build of Google Chrome for the Mac Version 4.0.203.0 (203.0), and it works there as well as in Safari 4, but it doesn't work in Firefox 3.0.11 hmmmm On Fri, Aug 21, 2009 at 5:56 PM, Rick DeNatale wrote: > Okay now with this: > > $(document).ready(function() { > ? ?$('#movie_title').keyup(function(eventObject) { > ? ? ?var title = this.value; > ? ? ?$('#imdb_a').replaceWith( > ? ? ? ?'Find \"' + title + '\" in the IMDB'); > ? ? ? ?if (title.length > 0) > ? ? ? ?{ > ? ? ? ? ?$('#imdb_url_link').show() > ? ? ? ?} > ? ? ? ?else { > ? ? ? ? ?$('#imdb_url_link').hide() > ? ? ? ?} > > ? ?}) > }); > > It works like it did before, but just on Safari 4. ?I'm also not sure > if I can out type it. > > > > -- > Rick DeNatale > > Blog: http://talklikeaduck.denhaven2.com/ > Twitter: http://twitter.com/RickDeNatale > WWR: http://www.workingwithrails.com/person/9021-rick-denatale > LinkedIn: http://www.linkedin.com/in/rickdenatale > -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale From martin.streicher at gmail.com Sat Aug 22 15:44:08 2009 From: martin.streicher at gmail.com (Martin Streicher) Date: Sat, 22 Aug 2009 15:44:08 -0400 Subject: [raleigh.rb] Edge Rails Message-ID: I am writing five blog posts about the goodies that have appeared in Edge Rails over the last few months. Two columns were posted at the end of last week. Three more will appear next week. You may have read about some or all of the things in the posts, but perhaps the examples will be novel. I am also happy to take suggestions from other Railers -- send me email this weekend so I can include the material in the remaining three posts. http://www.linux-mag.com/blogs/mstreicher You can also find a great, in-depth comparison of Groovy on Grails, JRuby on Rails, and Helma on that same page. The comparison was written by UCSC computer science grad student Tom Austin. Martin From martin.streicher at gmail.com Wed Aug 26 22:26:43 2009 From: martin.streicher at gmail.com (Martin Streicher) Date: Wed, 26 Aug 2009 22:26:43 -0400 Subject: [raleigh.rb] Hijack for Rails Message-ID: <70868BD5-9A3E-43A3-96AB-128815FFF164@gmail.com> I have written a short tutorial on using Hijack to debug running Ruby processes, including Rails applications. The article is available now at http://www.linux-mag.com/id/7492. Enjoy! Martin From seancribbs at gmail.com Fri Aug 28 16:10:58 2009 From: seancribbs at gmail.com (Sean Cribbs) Date: Fri, 28 Aug 2009 16:10:58 -0400 Subject: [raleigh.rb] Rails Rumble Message-ID: <4A9839D2.4070603@gmail.com> Don't want to toot my own horn too much, but our Rails Rumble entry "Lowdown" made it to the final cut, along with 21 other fabulous apps. Please go vote at http://r09.railsrumble.com/entries (openid login required)! Cheers, Sean From rick.denatale at gmail.com Fri Aug 28 17:24:46 2009 From: rick.denatale at gmail.com (Rick DeNatale) Date: Fri, 28 Aug 2009 17:24:46 -0400 Subject: [raleigh.rb] Rails Rumble In-Reply-To: <4A9839D2.4070603@gmail.com> References: <4A9839D2.4070603@gmail.com> Message-ID: On Fri, Aug 28, 2009 at 4:10 PM, Sean Cribbs wrote: > Don't want to toot my own horn too much, but our Rails Rumble entry > "Lowdown" made it to the final cut, along with 21 other fabulous apps. > ?Please go vote at http://r09.railsrumble.com/entries (openid login > required)! It's definitely one of my favorite entries, and I voted accordingly. I also like the I loaned it one. Some of the twitter based entries make me a little nervous for some reason. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale From rick.denatale at gmail.com Sun Aug 30 08:01:49 2009 From: rick.denatale at gmail.com (Rick DeNatale) Date: Sun, 30 Aug 2009 08:01:49 -0400 Subject: [raleigh.rb] If you are upgrading to Snow Leopard and are using any macports stuff Message-ID: I'm sending this to both the local mac users group and the local ruby developers group. This is likely only of interest to developers, if you don't understand the subject move along, this is not the droid you're looking for. If you have any software installed with macports I highly recommend that you get a list of what you have installed before installing snow leopard. >From the command line: $port installed > myports.txt You're going to need to re-install macports after the upgrade along with any of the port(ed) software. I discovered this after doing the upgrade, and found that the port command didn't work at all at first, so I couldn't get a list, and after reinstalling macports I had no ports installed, and therefore no list. There might be a similar issue for fink, but I don't use it so don't know. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale