search for: guterl

Displaying 20 results from an estimated 21 matches for "guterl".

2009 Jul 31
6
Background daemon
It''s sending e-mail every hour, but I changed to sleep for a day, but keep send the e-mail by hour. I don''t know what to do to send daily. Could somebody help me? thanks ############ # mailer.rb ############### #!/usr/bin/env ruby # You might want to change this ENV["RAILS_ENV"] ||= "production" require File.dirname(__FILE__) +
2009 Nov 19
3
Log File Location
This may be a dumb question, but where can I see the error logs that are usually displayed when unicorn is not daemonized? The production.log file is empty in my app. Everything is currently running as root.
2010 Nov 20
6
unicorn 3.0.0 - disable rewindable input!
Changes: Rewindable "rack.input" may be disabled via the "rewindable_input false" directive in the configuration file. This will violate Rack::Lint for Rack 1.x applications, but can reduce I/O for applications that do not need a rewindable input. This release updates us to the Kgio 2.x series which should play more nicely with other libraries and applications. There are
2007 May 23
4
Error when posting form
....6.8/lib/mechanize.rb:357:in `post_form'' from /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.8/lib/mechanize.rb:234:in `submit'' from (irb):28 from :0 I''d be happy to provide any other information needed to help debug the problem. Thanks, Michael Guterl -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mechanize-users/attachments/20070523/77d79260/attachment.html
2010 Jan 18
5
Re: puts & logger ... flush immediately
...d to. > > Also, get familiar with ruby-debug and test-first development. These > two things will drastically reduce your need for logging. > Dude, don''t be such a dick. Logging doesn''t necessarily have to do with debugging or test-first development. Best, Michael Guterl -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, se...
2011 Jan 14
4
Rails 3 / RSpec 2 use_transactional_fixtures and after_commit
...odule to make after_commit play nicely in your testing context. You?ll need to add these two lines to your spec/test helper:" ActiveRecord::Base.send(:include, AfterCommit::AfterSavepoint) ActiveRecord::Base.include_after_savepoint_extensions Anyone else ran into this? Best, Michael Guterl
2007 Nov 06
2
Automatic marshalling with DB access
I have an item which has a hash for one of its fields. When i store it in the db, i want to do a Marshal.dump of the hash, and similarly, do a Marshal.load to turn the saved blob back into a hash again. Is there a way to easily write this into the model, so that it happens automatically when saving and loading a record? thanks max -- Posted via http://www.ruby-forum.com/.
2007 Nov 06
2
Valid options from hash
Which is the best way to create a thin key/value related to some model? where a field only could insert those values (keys as 0,1) and where could be showed the values (as Red, Blue) from a drop-list COLOUR_OPTIONS = {0=>"Red", 1=>"Blue"} t.string :colour --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2007 Dec 09
3
Managing Hierarchical Data
Hello, I am in the process of trying to date hierarchical data in a MySQL database and convert it into a treeview view JS scripting. As a beginner to ROR there are still many unknown things to me, and handling this sort of data is one of them. My question is this: Is there any built in functionality for handling hierarchical data (via a MySQL DB) in Rails/Ruby? If there is can someone please
2010 Apr 15
11
Rails 3, Rspec 2, Autotest
Trying to set up a Rails 3 project with RSpec and Autotest. I followed these steps exactly: http://gist.github.com/365816 But when I start up autotest, I get: $ autotest loading autotest/rails style: Rails instead of: $ autotest loading autotest/rails_rspec2 style: RailsRspec2 And autotest doesn''t seem to do anything. Any idea what''s happening? I''m using Ruby
2006 Jun 08
0
Bad design or better way?
...alues, nor do I like that for the creation of each response it has to find the answer associated with it. Any help would be greatly appreciated. I''ve also put the basic models at the bottom of this email as well as the partial that creates the radio buttons for the form. Thanks, Michael Guterl --- Controller def save person = Person.new(params[:person]) breakpoint params[:answers].values.each do |answer| Response.create(:person => person, :answer => Answer.find(answer.to_i)) end if person.save flash[:notice] = ''Test has been completed, Thanks!''...
2012 Jan 15
1
NoMethodError: undefined method `expect'
Ideas? ruby-1.9.2-p290 :002 > require ''rspec'' => true ruby-1.9.2-p290 :003 > RSpec::Version::STRING => "2.8.0" ruby-1.9.2-p290 :004 > describe ''division by zero'' do ruby-1.9.2-p290 :005 > expect { 2/0 }.to raise_error ruby-1.9.2-p290 :006?> end NoMethodError: undefined method `expect'' for
2007 Jun 08
0
SVK and plugins
...ersion control systems I have decided to start using SVK (mentioned by the Piston author). I am curious, how are the other people out there using SVK managing their vendor/plugins directory? I''m relatively new to SVK, but it seems like someone has dealt with this before. Thanks, Michael Guterl --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send...
2007 Nov 06
1
gem freezes
Might be more of a general Ruby question I suppose, but you guys will know anyhow ... After an upgrade to Leopard (a clean install, not a literal upgrade) I''ve copied my projects back onto my Mac, but I get an error when trying to start Mongrel that according to sources on the internet indicate that I''m missing some gems. When I try and install them however, the gem command
2009 Jul 31
1
how to ignore case in highlight() function?
how to ignore case in highlight() function? -- Posted via http://www.ruby-forum.com/.
2007 Dec 04
1
ssl_required being ignored?
Hi everyone! I want to require SSL for a single action in one of my controllers (for logging in, and sending a password). Working off of the skateboard book, I have added: include SslRequirement to my application controller, and then in the login controller, I have added the line: ssl_required :login This does not give me any errors, but it does not redirect me to https either. It simply acts
2010 Jun 04
8
unicorn_rails cleanup (possible fix for Rails3) pushed
Hi all, I''ve pushed the following patch out go git://git.bogomips.org/unicorn along with a few other Rails-related test updates. This is more of a shotgun fix (but less code is better :) since I haven''t been able to reproduce the brokeness people have been seeing with "unicorn_rails" and Rails 3 betas. Even though "unicorn" works perfectly well for Rails3,
2006 Sep 03
1
New Technique: Subsets of has_many Associations
I just now thought of this, and sure enough it works like a charm (at least so far in my limited testing): has_many :events, :dependent => :delete_all has_many :upcoming_events, :class_name => "Event", :conditions => "date > NOW()" The purpose of this is that it makes eager loading of subsets of associations possible without replacing all the magic of the
2011 Aug 02
4
Best way to test tasks
I have a task that runs frequently in order to get/import data from another system. Because of this I wanted to know which is the best way to test tasks in order to create the tests needed. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110802/315d630f/attachment.html>
2007 Dec 05
1
rake error - please help
Hi- I''m suddenly getting this rake error where as before I wasn''t. And nothing''s been changed. As you can see it says something about "load_missing_constant". Is my development environment broken? Can someone please tell me what this error means?: bbgun@echobase:~/RailsProjects/rails_space$ rake test:functionals (in /home/bbgun/RailsProjects/rails_space)