similar to: Debug output / settings for debug sessions

Displaying 20 results from an estimated 40000 matches similar to: "Debug output / settings for debug sessions"

2009 Nov 12
9
uninitialized constant XML::Document
Hi All, I have installed "libxml-ruby" gem on my ruby instllation. while trying to create xml document with ruby progam in Rad Rails am getting error like "uninitialized constant XML::Document (NameError)" do i need to config any thing else in environment.rb file Thanks in advance Chinna. -- Posted via http://www.ruby-forum.com/.
2010 Jun 05
6
How do you update HABTM relationships or create.
Hi, I have a User model with a HABTM relation to a Role model and vice versa. So There''s a roles_users table that references :user and :role. I''m using formtastic, and in the user.edit.html.erb I have a line that outputs the roles as a multi-select list box. But the box is not showing the roles that have been assigned to the users. Another problem is that if I select a few
2004 Feb 06
2
how do i get rid of wine-kthread <defunct> ?
Hi, after a while of playing around with winedbg i have a lot of these: bash-2.05b# ps -A 559 pts/0 00:00:01 wine-kthread <defunct> 558 pts/0 00:00:04 wine-kthread <defunct> 607 pts/0 00:00:01 wine-kthread <defunct> 606 pts/0 00:00:04 wine-kthread <defunct> i tried differend variations on kill, and killall, but they don't go away. Any ideas? Regards,
2010 Aug 19
4
Subclassing a model
Is it possible to define a subclass for a model, that defines additional data columns, which are stored in a separate table? Is there any description, how to do this? -- Posted via http://www.ruby-forum.com/. -- 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
2010 Sep 08
14
A version problem
After updating, script/server fails with this stack trace: script/server -u /.../1.8/rubygems.rb:223:in `activate'': undefined method `map'' for nil:NilClass (NoMethodError) from /.../1.8/rubygems/custom_require.rb:35:in `require'' from <project>/vendor/rails/railties/lib/commands/server.rb:1 from /.../1.8/rubygems/custom_require.rb:31:in
2012 Oct 17
2
autolog: easily debug-like logging on the fly in your Rails app
If it helps anyone developing Rails apps or gems, I wrote a shortcut for set_trace_func, so next time you want to just add a line before and after some function you are trying to debug you can have Ruby temporarily output every line, method, etc. executed. Also, it lets you define the format, use other loggers, etc. via a proc/lambda define, since you might not like the default format.
2009 Oct 22
2
ruby-debug and Ruby 1.9.1
Has anyone built ruby-debug for Ruby 1.9.1? I am on Leopard. A check around the Web yielded issues with the pair, but no solution (I''ll keep looking), hence my question. Martin
2010 Sep 15
19
Rails 3 with Mongrel possible?
After much fiddling and googling, it seems to me that Mongrel, even the 1.2.0pre2 release is not compatible with Rails 3 -- is that true? When I start up a new Rails 3 project (i.e. one fresh after a `rails new` command), mongrel appears to start (creates a pid file, and reports no errors on the CLI), but the app does not load in the browser and I find this in the mongrel.log
2010 Jan 22
11
Finding out where a variable is defined
I''m looking at code in a project. I have no clue what is being passed into the resource parameter: def read_authorized?(resource) if resource.respond_to? :user_read_authorized? resource.user_read_authorized? current_user else true end end Is there any kind of debugging feature I can run to see what gets passed into resource in this specific
2010 Jan 29
4
requiring records in the DB before testing
Is there any way I can require a small set of data be in the test database before any tests are run? (unit, functional, integration, cucumber, etc) Any way besides using fixtures, that is. Overload a rake task? Modify test_helper? Any ideas? (Simple Case: I have to have a minimal set of user roles defined before any users can be created) -- You received this message because you are subscribed to
2010 Apr 30
3
undefined method `call' for nil:NilClass
why would I be getting this error after submitting my form? NoMethodError in EchantillonsController#create undefined method `call'' for nil:NilClass This is my create method in the controller: def create @echantillon = Echantillon.new(params[:echantillon]) @echantillon.set_eros_values respond_to do |format| if @echantillon.save if
2012 Jun 19
4
GUI rails debugger
Hello, Somewhat new to rails here. But have used Ruby for years and thus have used ruby-debug before with success. My years of gdb experience were helpful. I like how rails development is easy to do with Vim and command line. They only time I yearn for a GUI tool is when debugging. I do MS MVC dev at work, and VS is nice for debugging, even if I am not nuts about the rest of it. Anyone
2011 Nov 05
13
Adding a site admin user while creating a site
Hi Gurus, I wanted to add siteadmin user(basically a user with a certain role) while creating the site itself. I hope that i have done all the necessary stuff by going through raynb''s railscasts ( http://railscasts.com/episodes/196-nested-model-form-part-1) But could not see user fields being displayed in the site creation form.. Below are the details. I Have two model users and
2011 May 09
17
requests hanging
If my Rails server has been sitting idle for a while, it does not respond to new requests. What is the best way to troubleshoot something like that. I am using Rails 3.0.7 in development. -- 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
2010 Jan 30
2
passing multiple objects with remote_function
Hey, I can successfully pass a single object from any form field to my controller via: Select Year: <%= collection_select("vehicle", "year", @availableYears, "year", "year", {:prompt => "Select a year"}, {:onchange => "#{remote_function(:url => {:action =>
2010 Apr 30
1
Dumping 12,000+ records into seeds.rb?
I have a legacy e-commerce app that''s got about 12,000 inventory items in it, including pairings between items in one model to items in another. There''s no way we''ll have the manpower to manually add all those items and their pairings again ("ah cannah dew ih, cap''n!"), so I''m hoping to write a series of either Ruby or raw SQL scripts to move
2009 Dec 25
18
rescue_from ActionController::RoutingError II
OK ... so I''m not supposed to use it but ... Why doesn''t rescue_from ActionController::RoutingError work witht he code from http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html class ApplicationController < ActionController::Base helper :all # include all helpers, all the time # See ActionController::RequestForgeryProtection for details
2009 Dec 23
8
Where did this value in a form come from?
Newb here. I have a form and a value that is being displayed ... and I have no idea where the value came from. I have done a <%= debugger; '''' %> in the form and, indeed, the debugger stops at the statement. I have tried to trace through the code to see where the value came from ... and I gave up. So ... what in Rails initializes the fields of a form? -- Posted via
2011 Sep 18
9
Rails 3 and postgresql
I have a simple project created around a very, very simple database: one main table packs with just three rows Column | Type | Modifiers --------+-----------------------------+---------------------------------------------------- id | integer | not null default nextval(''packs_id_seq''::regclass) nombre | character
2011 Nov 28
4
getting a subdomain name in model.
Hi all, I am facing problem in getting subdomain name inside the model. The following is my setup. I am using cancan for authorization.I wanted a specific condition in Ability.rb ( the file which is placed in models if we install cancan gem). Below is the condition I wanted: ========================================================= user ||= User.new # guest user (not logged in) if