I’m not sure if this applies to all the versions of Rails, but right now I’m using the latest 2.3.3. I’m using shoulda to do testing and my code looks like this: context “GET show” do setup do @feed = Factory(:feed) get :show, :id => @feed.to_param end should_not_set_the_flash should_respond_with :success should_render_template :show end </pre> The…
Tag: errors
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…
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…
ERROR: While executing gem (ArgumentError) Illformed requirement
I like to use to deploy my applications because of its simplicity. The other nice thing is that they give you free developer space so if you are just getting an application up and running or just need to show it to a client you can do so without having to pay a bunch of…
Plugin Loading for Ruby on Rails has Changed.
I am tired of recreating the login system for Rails for each new project so using the RESTful Rails Authentication Tutorial I created a template project that I can use to create new projects. While adding in the OpenID Authentication component I started getting this error: /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:376:in `new_constants_in’: You have a nil object when you…
Stupid Error That I will Blame on Lack of Sleep
So if you are ever working oh so hard on a ruby on rails application and all of a sudden your application stops working and you have no idea why because the error looks like this: /!\ FAILSAFE /!\ Mon Nov 12 17:27:15 -0700 2007 Status: 500 Internal Server Error wrong number of arguments (1…
Edge Rails, OpenID and the Dreaded Sorry, the OpenID verification failed” error
We use Edge Rails in our projects. Call me stupid if you like, I like living on the edge (get it?). This desire to push our luck has bitten us a couple of times, but not in any serious way. Not until recently anyway. We use OpenID – another brand new cool technology. The combination…