Tag: ruby
-
Ruby Search Bookmarklet For Ru8y.com
Marc Chung put up a quick Ruby documentation search site recently: http://ru8y.org. Here a quick little bookmarklet for your Ruby searching needs. (Drag it to your toolbar.) Ru8y Search
-
Installing The MySQL Ruby Gem When Using The Official MySQL .dmg
If you installed MySQL using the official .dmg package provided by MySQL AB/Sun and are trying to install the native MySQL gem, you’ll need to pass a bunch of flags to the gem install process to get the thing to compile. Try this.. sudo gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config ..if you still have issues (check your /opt/local/lib/ruby/gems/<ruby_ver>/gems/mysql-<gem_ver>/mkmf.log…
-
Debugging JavaScript With Safari
I usually use FireBug and other FireFox-based tools for troubleshooting JavaScript issues, but never found a solid way to approach it in Safari, my primary browser. It turns out that the nightly builds of WebKit (Safari’s core) also come with a great utility called Drosera.app, which allows you to attach to a running WebKit process…
-
Marc Chung on Amazon Web Services
Mad props to fellow OpenRain’r Marc Chung for an excellent AWS presentation at this months Phoenix Rails meeting. Follow-up links.. Full session audio in Rubyology episode #59, courtesy Chris Matthieu. Slides. Marc’s blog, recap and company. Derek’s recap. Great job, Marc!
-
Rails 2.0: selenium-on-rails routes.rb fix
When I updated a few projects to Rails 2.0 last year, selenium-on-rails stopped working … some issue with routing and the lame way selenium-on-rails adds its routes. I didn’t spend the time to figure out exactly what the routing problem was, but did manage to hack a quick fix into routes.rb. This feels like the…
-
Rails 2.0: Gmail SMTP With ActionMailer
Marc just checked in a nifty little Rails 2.0 plugin to the OpenRain public subversion repository which encapsulates the voodoo required to use a Gmail SMTP server with an otherwise ordinary ActionMailer configuration. Gmail requires TLS security, which is why this is useful. Grab the plugin for your Gmail-mooching Rails 2.0 site, here. Note: I…
-
Ruby Troubleshooting: Hpricot On OS X Leopard
If you upgraded to Leopard, you may be getting this nasty error when trying to install Hpricot, which is required by other popular gems such as mechanize.. preston$ sudo gem install mechanize Password: ******** Bulk updating Gem source index for: http://gems.rubyforge.org Install required dependency hpricot? [Yn] Select which gem to install for your platform (i686-darwin8.10.3)…
-
Rails 2.0: Validations Without Extending ActiveRecord::Base
In more “enterprisey” web stacks (such as Java with Hibernate and Spring MVC), it’s straightforward to design a validatable form whose contents do not correspond directly — if at all — to a persistent OR/M class: such as may happen in an ecommerce site where you’re collecting payment information but can only store some of…
-
Rails 2.0: HTTP Basic Authentication
HTTP Basic authentication support comes bundled with Rails 2.0, alleviating the need for external plugins we used with Rails 1.x. Here’s how you can use (and test) this new Rails 2.0 feature.
-
Rails 2.0: Testing For Well-Formed XML With assert_well_formed
Here’s an easy way to validate that you’re always rendering well-formed HTML in an ordinary Rails application. I’ve written and verified this on Rails 2.0.1…