The docs for jQuery.ajax indicate that by default the request is made using ‘GET’. I would still recommend setting the type to ‘GET’. We just deployed a site and found that for some reason some versions of Internet Explorer were doing a POST instead of a GET. This is problematic with a Ruby on Rails…
Category: Ruby On Rails
Implicit multipart emails using Ruby on Rails and ActionMailer won’t work
I’ve been beating my head against the wall trying to figure out why html emails from my Rails Engine are sent out as plain text ie the email shows up with all the html tags visible. Turns out there is an issue in Rails 2.3.2: https://rails.lighthouseapp.com/projects/8994/tickets/2263-rails-232-breaks-implicit-multipart-actionmailer-tests. For now I’m just setting my emails to html,…
Sending email with Ruby on Rails 2.3.2 and gmail
If you need an easy way to setup email for your company or for a client it’s hard to not love Google Apps. (The ‘standard’ ie free version is here). It is very likely that at some point you will need to send out emails from your application. Don’t cry. Gmail can do this for…
jeweler and the empty gemspec
I’ve been racking my brain trying to figure out why my gemspec for a new gem had no files in it. I’m using jeweler to build the gem and it’s worked great in the past. Then I read in the docs that jeweler will include any files in the gemspec that are not in .gitignore…
New Uploader Gem
I just pushed out a new uploader gem. Get the new code from github or install the gem with sudo gem install uploader. This comes with a few more translations and a fix for a nasty bug. The format was not properly set for uploads via swfupload. Unfortunately, even without the format it worked on…
Testing Rails Engine Gems
I’ve been working on a number of gems that are basically packaged Ruby on Rails engine plugins. It turns out that turning gems into plugins is pretty easy to do. However, testing them can be a pain. Here are a few things I came up with. After looking at how Clearance handles tests I’ve decided…
A copy of ApplicationController has been removed from the module tree but is still active! And can’t dup NilClass
If you’ve been working on Rails 2.3 engines (the new stuff that comes with Rails 2.3 not the old engine plugin) and you start running into either of these errors: A copy of ApplicationController has been removed from the module tree but is still active! Or can’t dup NilClass Don’t go find a new job…
Disguise your Rails Application
I spent quite a while trying to figure out how to theme my Ruby on Rails applications. Turns out after you build a piece of software people want to use it to do other stuff. Go figure. I really like how simple it is to skin a WordPress site so I stole borrowed some ideas….
Stupid WTF! ActionView::MissingTemplate Exception: Missing template users/_user.erb
If you’ve spent much time working with Ruby on Rails and more especially if you’ve done anything with json you might have run across errors like this: ActionView::MissingTemplate Exception: Missing template users/_user.erb </pre> I was having this problem and doing a lot of cursing which is common when I stay up and write code until…
newgem
I’ve been using newgem to build Babelphish (translation helper thing). The docs from the ruby forge site are a bit out of date. If you use newgem to build anything be sure to look at this post from Dr Nic and pay attention to the options you can pass in. In particular I noticed that…