Finding a path in Rails folder -
i wanted debuging purpsoes learn how use logging, used write "puts" every , see them in console. logging need simple rails.logger.debug('hello place')
i found looks logging goes somewhere this:
#{rails.root}/log/#{rails.env}.log but still having problem navigating such path :)
ok if rails thats get:
/users/ericcartman/.rvm/gems/ruby-1.9.3-p374/bin/rails so how should navigate there? in dev environment.
the logs found in log directory of rails application.
so enter rails s start application, try ls -l log list log files.
Comments
Post a Comment