On Apr 8, 2012, at 2:43 , David Paschich wrote:

> I'm trying to get the ruby debugger working and can't seem to get there.  
> Environment summary:
> 
> Mac OS X Lion
> RVM
> Ruby 1.9.3p125
> Rails 3.2.3
> Rspec 2.9.0
> 
> I've put the debugger statement in my controller like so:
> 
>   def show
>     debugger
>     seasons = Season.where(:name=>params[:id])
>     puts @seasons
>     @season = seasons.first
>     puts @season
>     @season_entries = @season.season_entries
>   end
> 
> And run my spec like so:
> 
> $ bundle exec rspec -d spec/controllers/seasons_controller_spec.rb

try $ RUBYOPT='-r openssl' bundle exec rspec -d 
spec/controllers/seasons_controller_spec.rb

it looks weird but usually works :)

-- 
===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache

www.meinlschmidt.com  www.maxwellrender.cz  www.lightgems.cz
===============================================================================

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to