similar to: Rails debugging - a (slightly) better approach?

Displaying 20 results from an estimated 700 matches similar to: "Rails debugging - a (slightly) better approach?"

2006 Aug 16
5
Class redefinition
Hi, Suppose I want to redefine the Ruby String class in a Rails app. In which file is it the most suitable to write the redefinition? Thanks Guillaume Carbonneau -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060816/5b0da204/attachment.html
2007 Jul 12
1
WWW::Mechanize::Link.inspect needs some TLC
The problem: users trying to debug Mechanize apps with Komodo are finding the debugger times out once it''s loaded a web page. They don''t run into this in the ruby-debug debugger, or running in normal mode. The reason: Komodo''s debugger is graphical, which means that whenever it hits a breakpoint it automatically shows the contents of each local variable. It has a
2010 Dec 05
3
Strange problem with CSV and funny chars
I am using CSV in a rake task (db:seed) on Rails 3.0.3, Ruby 1.9.2 to read a file with some funny chars in it. Upon breaking in at a point where the row read using CSV is in variable row, with the string with the char in row[''price''] I get the following strange results which I cannot understand. (rdb:1) row[''price''] "\xA32.00" (rdb:1)
2006 Jul 28
12
MenuEngine
Hi all, MenuEngine is a small Rails engine that can generate templated drop-down DHTML menus commonly used for web site navigation. Supports creation of menus from a YAML file, from code and from pre-configured HTML. Optionally integrates with UserEngine for authorization. http://www.muermann.org/ruby/menu_engine Project page: http://rubyforge.org/projects/menuengine This is my first attempt
2011 Apr 27
2
Can not create model instance via params on specific model but can on others....
Anyone have an idea on this? Got a weird situation where on a specific model I can not create an instance using params, yet it works fine on other models. The model which does not work is a stock model, there is no logic in it. Ruby 1.8.7/Rails 3.0.5. Does not work: (rdb:1) PaymentTransaction.create(:purchase_id => 3) #<PaymentTransaction id: 2, purchase_id: nil, action: nil, amount: nil,
2006 Aug 09
6
How do you desing forms in RoR
Hi all, what is the best way tod esing a form in RoR? Do you use Dreamweaver or something similar? thanks -- Posted via http://www.ruby-forum.com/.
2017 Apr 02
0
rdb and rds files include abolute file paths / help understanding how lazy-load dbs are created
Hi, I'm trying to understand why/how absolute file paths are stored in .rdb[1] and .rds[2] files during package installation. As a consequence building the same r package in different directories does not produce identical .rdb and .rds files. The background is that I work on reproducible builds[3] of R packages. I think this is important from an engineering point of view but also from a
2007 Apr 19
2
invalid geometry string in change_geometry
I get the following error at the browser: ArgumentError in ImagesController#upload invalid geometry string `110×'' ... for the call to change_geometry with an explicit size (''110x'') as the geometry string: def make_thumb (the_img) require ''RMagick'' size = "110x" debugger if ENV[''RAILS_ENV''] ==
2008 Feb 01
2
proposed patch for fb_request_form_submit
Hi, according to the Facebook docs, you can add a uid to the fb_request_form_submit button which will pre select the user for the form. So you can do: <fb:request-form action="/my_tasks" method="POST" invite="true" type="MyApp" content="wants to invite you to xyz app"> <fb:request-form-submit uid="FRIENDID" />
2006 Aug 10
4
How to upload all images in a folder?
Instead of making a form to upload one picture at a time, I''d like to have the File Column plugin accept a directory, and have each picture be uploaded and thumbnails created (w/ RMagick). Has anyone done this? Anyone have a good idea where to start if I were to do it on my own? Thanks, Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
2008 Apr 05
0
url_for + :canvas => false weirdness for non resource controllers
I noticed something strange in my app today. It appears that the extra canvas path appended in url_for is back but only for controllers that are not resources. Here is an example I have in my site: campaigns is a resource checkout is not # With the canvas false flag (rdb:1) @controller.url_for(:controller => ''campaigns'', :action => ''show'', :id
2006 Aug 15
5
Conditional extend of active record
Hi list, I''m trying to figure out the best way to add some functionality to active record. I have a table of files, and need to write a set of core functions that do different things depending on the type of file eg: class file < ActiveRecord::Base def resize ....does stuff end end the problem is the "....does stuff". For example, if the file is an image it
2010 Jun 21
1
Problem with package installation
Dear ComRades, I am having the "wrong MD5 checksums" error with every package I try to install. It happened with R 2.11.0, then I updated to R 2.11.1, same thing. sessionInfo() R version 2.11.1 (2010-05-31) i386-pc-mingw32 locale: [1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252 LC_MONETARY=Spanish_Spain.1252 [4] LC_NUMERIC=C
2000 May 18
0
Failed copying and writing
Samba 2.0.7, NT WS 4.0 sp6, Slackware 7.0 (glibc 2.1.2), linux kernel 2.2.15 with crypto patch patch-int-2.2.14.1. Samba configured/compiled with the following switches: --with-smbmount --with-syslog Most of the time writing to, or copying from samba shares, hangs, then fails. Trying to copy scrt303.exe from HOMES share to NT box, smbstatus reports: Samba version 2.0.7 Service uid
2000 May 22
0
read_socket_data: recv failure for 4
Samba gives read_socket_data: recv failure for 4 when trying to write or read with NT4 WS, why? Samba 2.0.7, NT WS 4.0 sp6, Slackware 7.0 (glibc 2.1.2), linux kernel 2.2.15 with crypto patch patch-int-2.2.14.1. Samba configured/compiled with the following switches: --with-smbmount --with-syslog Most of the time writing to, or copying from samba shares, hangs, then fails. Trying to copy
2011 Jul 03
7
Age of Conan, Wine 1.3.23, Mac OS 10.6.7 ?
Age of Conan went free-to-play (sort of) recently, and I thought I'd give it a look. The AppDB entry and a search of bugs seems to indicate that it should mostly work except for some texture problems, but I can't seem to get past the installation. Configuration: * Mac OS X 10.6.7 * Wine 1.3.23 * Age of Conan web installer Process: * Created fresh WINEPREFIX by: "wine notepad"
2007 May 31
9
Switching to mongrel
I made an attempt to switch to mongrel today and I''m running into a strange error message I can''t seem to track down: debug: puppetmaster: Setting servertype to ''mongrel'' Server is not a class Tracing through with the debugger shows: [snip] /foo/lib/gems/puppet-0.22.4/bin/puppetmasterd:248: case Puppet[:servertype] (rdb:1) n
2006 Mar 16
1
Problem compiling R-Patched
I downloaded R-Patched today (to see if another problem I want to ask about is still present or if its just me - as per the posting guide). I ran "tools/rsync-recommended" successfully. I then ran "configure --enable-R-shlib" successfully. Then make stops with the following error. gcc -shared -L/usr/local/lib -o tools.so text.o init.o Rmd5.o md5.o -L../../../../lib -lR
2007 Oct 18
1
Offtopic: help with an iPod
A friend bring and Ipod, initially it didn't start because of charge, so I connected to my PC to give some charge, after that my linux didn't mount it, and when I start the iPod it shows me a folder with a sign, and that's all, nothing else matters. when I connected the iPod to the PC it start to charge and suddenly stops and shows the folder I have talked before I run the command
2010 Sep 02
0
controller failing to read flash
I''m seeing some pretty strange behavior from the flash in my rails 2.3.8 app. I set the flash in a request, and then redirect. In the next request (the one redirected to), accessing the flash returns an empty hash, but the flash is stored and visible in the session. (rdb:21) session {:user_credentials=>"...", :session_id=>"...", :user_credentials_id=>1,