Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

mattmartini's Profile

GitHub User: mattmartini

Comments by


I am having the same issue as Danilo, all of my controller tests fail unless "guest" can do that action. The controller scaffolding provides :valid_session which seems like it should help with this problem, but I can't figure out how to configure it. Anyone done this?

When I try Chris's method I get:
undefined method `stub' for #<MyController...

Any ideas on how to resolve this?

Using Rails 4.2.6, RSpec 3.4.0


I'm having trouble with binding of caller. I can't start the rails server (or guard) with it installed. Any ideas on what to do about this error?

dyld: lazy symbol binding failed: Symbol not found: _RUBY_FREE_ENTER
Referenced from: .../.rvm/gems/ruby-1.9.3-p429/gems/binding_of_caller-0.7.1/lib/binding_of_caller.bundle
Expected in: flat namespace

dyld: Symbol not found: _RUBY_FREE_ENTER
Referenced from: .../.rvm/gems/ruby-1.9.3-p429/gems/binding_of_caller-0.7.1/lib/binding_of_caller.bundle
Expected in: flat namespace

Trace/BPT trap


Once again your provide timely info. Thanks!
I have a project with two sister schools. The sites are almost identical except for some small cosmetic changes, and they have different dynamic content. The users of each site should be able to login to the other site (but of course privileged accounts should only be privileged in the home site). I can see how to implement this based on your Railscast.
My question is can this be done with two domains instead of sub-domains? I would like to have and instead of and Is this possible? How would I start? Or should I just maintain two sites and have some sort of joint login system (and how would I do that?)


Great screencast, and as typical a very timely topic.

Anyway, another way to get rspec to use spork instead of the

:cli => "--drb"

option is to put "--drb" in the .rspec file at the project root dir. I also include "--colour" and "--format progress" (or "--format nested") there.


As usual, relevant info presented succinctly with style.

How does Guard compare with Autotest (and Spork)?

I've been using autotest/spork for a while now, and it works well, but if you change a controller or routes the proper specs are run, but fail because spork is running the old version. Does Guard do this better?