search for: schairbaum

Displaying 19 results from an estimated 19 matches for "schairbaum".

2007 Jun 27
5
Mosquito Fixtures Won''t Load
I can''t get fixtures to load correctly in a Mosquito test. The first fixture loads in the unit test, but the rest don''t load at all. File structure: tracker/ tracker.rb test/ test_tracker.rb fixtures/ tracker_measurements.yml tracker_projects.yml Relevant test code: require ''rubygems''
2007 May 07
3
Module Madness
I''m wanted to make a "global" module that I could include in my application for some shared code between them. I''ve been making several camping apps and wanted them all to share a helper/partial that contained the navigation. I ran into a lot of difficulty when trying to include it, the primary problem being "methodUndefined" errors. I did finally get it to
2006 Mar 21
3
Switch...err Capistrano hangs
I''m having a little bit of difficulty deploying my app. I''ve run the setup and it works with Cap, but when I try to deploy it hangs at "querying latest revision". I can access my svn locally (I''m on a windows xp sp2 machine) using SubClipse plugin, but not through the command line though (yes, svn client is installed). I''m pretty sure that
2007 Oct 06
4
NO NAME (Because of --dry-run) output
I''m just getting started with rspec, I''m running on edge for both. In a fresh project, I freeze edge, install the edge rspec plugin. I generate a simple rspec_model and run the spec. It passes. When I run rake spec:doc, I get the following output: - NO NAME (Because of --dry-run) where the specification should be. In fact if I just make a pending spec, it does the same.
2007 May 19
2
RV permissions -- can''t park in my lot!
I''m trying to setup RV and cannot get it started. I keep getting: Permission Denied : /var/log/rv.log I''ve tried running it as root to test and also using www-data and chrgrp of rv.log to www-data. Here''s the output: nohup su -c "/usr/bin/ruby rv_harness.rb 3301 127.0.0.1 < /dev/null 2>&1 > /dev/null" www-data < /dev/null 2>&1 >>
2006 Feb 14
10
acts_as_versioned and getting authors
Hey guys and gals, I have the following object that has acts_as_versioned: class Note < ActiveRecord::Base acts_as_versioned belongs_to :user end The schema for my notes table is as follows: create_table :notes, :force => true do |t| t.column :id, :integer t.column :noteshare_id, :integer t.column :user_id, :integer t.column :title, :string
2006 Jun 14
0
Changing the name of application.rb
.../controllers so I can cleanly have Application.find ... without having to name my model something like MyApplication or something silly just to have it work. I''ve been browsing through the Railties initializer, but I don''t see it implicitly named. Thanks for the help, Josh Schairbaum -- Posted with http://DevLists.com. Sign up and save your mailbox.
2006 Mar 24
1
Caching and Capistrano
I had an incredibly difficult time getting this to work correctly and I have a couple of comments/questions, after the fact. When using caching and Capistrano together, how have you set the permissions on your RAILS_ROOT/public folder...or have you sent your cache data to your document root? I''ve got it working now, but of course, it will break the next time I deploy. I was
2006 Feb 21
2
start_form_tag with method GET
Hi, How can I get start_form_tag to use GET instead of POST? I have tried... <%= start_form_tag {:action => ''search''}, {:method => ''get''} %> But it doesn''t work... compile error ./script/../config/../app/views/search/index.rhtml:35: syntax error _erbout.concat(( start_form_tag {:action => ''search''}, {:method =>
2006 Feb 28
2
Escaping Arithmetic Symbols
Could someone please tell me how to escape the ''division'' arithmetic symbol in a model or controller? I''ve searched around and cannot find a solution. I''ve got the following in my model: def avg_risk t = 0 self.audits.each{|key| t = t + key.control_rating } t = t / self.audits.count #this line doesn''t work... I''ve even
2006 Jan 30
1
Either/Or Validation
How would I use validations to ensure I either received a blank value or a ten digit number? If I set validates_length_of :field, :in => 0..10 then that would allow any value in-between. The allow_nil => true option does not seem to work. I''ve also tried using this with some combination of validates_numericality_of but cannot get it to work. Any help would be greatly
2006 Apr 01
2
my app broke this morning on with this error.
Like I said, my app suddenly stoped working in the last few minutes. I''m on dreamhost but I''m running rdge rails locked in on the 1.1 release. Stale NFS file handle - ../config/../log/production.log /usr/lib/ruby/1.8/logger.rb:520:in `write'' /usr/lib/ruby/1.8/logger.rb:520:in `write'' /usr/lib/ruby/1.8/logger.rb:318:in `add''
2001 May 20
0
SDMI takes break on portable players...
...l music players on the market today meet the group's preliminary specifications, which set the stage for a future defense against piracy. Instead, most manufacturers have concentrated on players that could handle one or more of the security techniques used by the major record labels, said Chris Schairbaum of Texas Instruments Inc., a leading provider of microchips for those devices. Proponents acknowledge that the effort has fallen far short of its goals, but they insist it's still relevant. They also say that the industry may find a way to build on the technical foundation laid by SDMI....
2008 May 05
14
[poll] What was your primary language before you started coding in Ruby?
This is an informal poll. If you are primarily a Ruby programmer, - What was your primary language before you started coding in Ruby? Else, - What''s your current programming language of choice? I''ll start: Perl -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jun 15
13
Best Approach to a ''Down for Maintenance'' Page?
What is the best way to implement a ''Down for Maintenance'' page across your Rails app? Ideally I would like to have a button in my admin section that toggles the display of a ''currently under maintenance'' page to every public request to the app (possibly with some dynamic content like estimated down-time) except for: - - requests from a specified IP
2006 Jan 20
11
Userstamp Plugin
I''m pleased to announce a new plugin for Rails: Userstamp. You can read my blog post at http://www.delynnberry.com/articles/2006/01/20/userstamp-plugin and/or read all about it at the perminant page http://www.delynnberry.com/pages/userstamp. Any comments or suggestions for improvement are much appreciated. -- DeLynn Berry delynn@gmail.com http://www.delynnberry.com A dump of the Readme
2006 Jun 02
0
field_with_errors not showing
My views won''t wrap a field with the <div> tag when validations return errors. I can generate a list of the items, but it''s not wrapping the fields. I know you can manipulate how ActionView does a field with errors, but I have not changed it. Does anyone know the reason for this? I''ve asked several times on IRC and no one seems to know. My form itself
2006 May 23
1
How do I check if something was eagerly loaded?
I''m looking for a way to check an item in memory to see if an association loaded. I load the association in the controller and then in the view I need to check to see if the associated model loaded because I display an attribute of it. Of course, if the model didn''t load, because it doesn''t exist, I get an error. For example, in my controller I have thus:
2005 Dec 15
2
Select/Option selected value
I''m trying to get a select box to populate with the current option for editing purposes. I can populate the box, but not with the currently selected value. I''ve read in the api where it says to do this: # Example with @post.person_id => 1: # select("post", "person_id", Person.find_all.collect {|p| [ p.name, p.id ] }, { :include_blank =>