Colin L. wrote:
On 14 August 2010 19:06, Manu L. [email protected] wrote:
@user = User.find(session[:user_id]), thanks a lot
The second one, I’m afraid that will need a little more research because
I can’t find anything in the development.log
If you can’t work out what is happening to the flow in your code it
can often be useful to use ruby-debug to break in to your code, where
you can inspect data and step through the code. See the Rails Guide
Well, I tried, but I get lots of errors, even with ruby-debug19 -as I am
using Ruby 1.9.1-p249- but I keep getting errors and that prevent me
being able to use it:
Microsoft Windows [Version 6.1.7600]
Copyright © 2009 Microsoft Corporation. All rights reserved.
C:>gem install ruby-debug19
Building native extensions. This could take a while…
ERROR: Error installing ruby-debug19:
ERROR: Failed to build gem native extension.
checking for vm_core.h… *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
try_do': The complier failed to genera te an executable file. (RuntimeError) You have to install development tools first. from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:433:intry_cpp’
block in have_header' from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:670:inblock in
block (2 levels) in postp one' from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:250:inopen’
block in postpone' from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:250:inopen’
postpone' from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:669:inchecking_for’
have_header' from extconf.rb:15:inblock in ’
call' from C:/Ruby191/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/ruby _core_source.rb:18:increate_makefile_with_core’
from extconf.rb:20:in `’
Gem files will remain installed in
19-0.5.11 for inspection.
Results logged to