search for: seanhussey

Displaying 20 results from an estimated 35 matches for "seanhussey".

2006 May 05
1
NameError when running exception_notification plugin?
...lized constant ExceptionNotifiable This error occured while loading the following files: application.rb exception_notifiable.rb In my application.rb, I added this: include ExceptionNotifiable And in my development environment file, I added: ExceptionNotifier.exception_recipients = %w(seanhussey@gmail.com) What am I missing? Thanks! Sean
2006 May 05
3
exception_notification plugin not sending mails in development on localhost
Hi everyone, So, I''ve got exception_notification working now, but not in development mode on localhost. In my ApplicationController, I''ve added: local_addresses.clear Shouldn''t that be enough? Thank you! Sean
2006 Mar 15
7
O''Reilly Rails Cookbook on Rough Cuts
Subject says it all. Anybody taken a look yet? http://www.oreilly.com/catalog/railsckbk/?CMP=ILC-GG7423313304&ATT=railsckbk After buying the Ruby Cookbook and the other Rails book, I''m pretty gunshy about another Rough Cuts purchase. Sean
2006 Mar 30
3
Model.find(:all) where Model.association has more then 0 items?
Hi everyone, I have a Department model that has_many people. How do I go about finding all departments with more than 0 people? Department.find(:all, :conditions => Department.people.size > 0) That, of course, doesn''t work, but it was as close as I could come. Thanks! Sean
2006 May 25
4
Using an external database behind a firewall
Hi everyone, There''s a separate database I''m using to get mail group info for our users (Sympa), and I''ve got Rails configured to pull data directly from it via an entry in database.yml The issue we''re having is that the database server in question is behind an internal firewall that has idle timeouts set at 30 minutes. If the connection isn''t used
2006 Mar 29
3
MySQL in dev, Postgres in prod - differences in "LIKE" query
Hi everyone, I run MySQL in my dev environment, but Postgres in my production environment (out of necessity). I''m having trouble finding a way to write a query with a LIKE condition that is supported as case insensitive in both databases. Right now, I have this: @query = "m" # for example @people = Person.find(:all, :conditions => ["last_name LIKE ?", @query +
2006 Jan 09
3
Pagination :conditions not working - MySQL v. PostgreSQL, Rails abstraction v. embedded SQL
Hi everyone, I have this code: @person_pages, @people = paginate :person, :per_page => 20, :conditions => [ "username LIKE ? OR first_name LIKE ? OR last_name LIKE ? OR preferred_name LIKE ?", "%" + params[:q].downcase + "%", "%" + params[:q].downcase + "%",
2006 Jan 30
4
Is this a case for STI?
Hi everyone, We have different populations of people here at our college: Staff, Faculty, Students, Alumni (and a host of "Other" that I''ll worry about another day. I originally had only Staff and Faculty loaded in under a Person model using a Personnel controller. Now I want to add the students in, so I thought STI might be the way to go: class Person < AR::Base end
2006 Apr 11
2
Passwords in SVN?
Hi everyone, Where do you all keep your passwords for your apps? Out Subversion repo is locked down to authorized users, and only those users can see code in Trac. Is it safe to store passwords in there? For Rails? For other scripts? What''s your strategy for this? Thanks! Sean
2006 Jan 23
1
Spawner -p and --port not working?
Hi everyone, I''m trying to set a port with spawner, and it''s not working: ruby /var/rails/ldapadmin/current/script/process/spinner -c /var/rails/ldapadmin/current/script/process/spawner --port=7000 -i 4 -d spinner: invalid option: --port=7000 Same with -p: ruby /var/rails/ldapadmin/current/script/process/spinner -c /var/rails/ldapadmin/current/script/process/spawner -p 7000
2006 Jan 30
1
AR load script only loading every other item?
Wow, this one is weird. I''ve got a file with data I want to import, one item per line. When I run this code, only the first, third, fifth, etc items get saved: require ''../app/models/entitlement'' #### Add entitlements f = File.open("../tmp/entitlements.csv") f.each do |line| id, code, description = line.chomp.split(''|'') entitlement =
2005 Dec 23
3
Intergrating delicious?
Whats the best way of intergrating del.icio.us into a RoR app? -- Posted via http://www.ruby-forum.com/.
2006 Feb 15
10
STI Question
Hi everyone, I have 3 types of people (for now): Staff Faculty Students To break them up into classes, but keep them in the same People table, I''ve broken them up like so (code and ''ends'' snipped): class Person < ActiveRecord::Base class Employee < Person class Staff < Employee class Faculty < Employee class Student < Employee So, when I insert
2006 May 02
10
[OT]: Asking questions on this list
Hi List, it appears that for the third or fourth time now, I''ve asked a question that nobody seems to respond to. Other questions (often things that could quite easily have been extracted by searching with Google or from api.rubyonrails.org) are answered almost momentarily. I''ve to admit I''m more than a little frustrated by this, so have to ask myself if it was my own
2006 Jan 31
5
Rails auth systems using LDAP?
Hi everyone, Are there any Rails systems that are either: * Easily extensible to use a different auth store? * Use LDAP out of the box? Thanks, Sean
2006 Apr 22
6
STI and type tables?
So by default to get STI, I would have something like: create_table :items do |t| t.column "type", :string t.column "title", :string end But if I want to store those type values in a separate table, such that I have ... create_table :items do |t| t.column "item_type_id", :string t.column "title", :string
2006 Feb 03
33
[ADV] Rails Recipes Beta Book is now available
I''m delighted to announce that Chad Fowler''s new book, Rails Recipes, is now available as a Beta Book. This is a great title for folks who know Rails, and for folks who want to get the most out of Rails. It contains detailed recipes for doing real-world things with Rails, all illustrated with working code. Some examples are drawn from Rails 1.1, the rest from Rails 1.0.
2006 Jan 31
6
Pagination - why is it this hard?
Hi everyone, I''m at the end of my rope on this. I can''t get pagination to work with anything but a standard find on a model. If I try to do a search and customize the pagination, I get lots of different variations. My thought was to have the list action do what it does, but to pass it a list of search conditions from the search action. So, if search determines that we need
2006 Jun 01
0
New O''Reilly Friday...er...PDF Guide - Web Services on Rails
Anybody seen it yet? Here''s the bit I got today in the email: ----- Web Services on Rails <http://www.oreilly.com/catalog/websor/> By Kevin Marshall ISBN: 0-596-52796-9 32 pages, 9.99 USD, 12.99 CAD, 6.95 GBP This PDF will show you how your small business or enterprise can publish its APIs (application programming interface) to a developer community just like the behemoths of
2006 Jun 07
0
Refreshing remote :through associations with deletes
Hi everyone, I''m refreshing the local Rails database from a remote database every 10 minutes. I''m using a :through association to relate people to mailinglists through subscriptions. # Works fine, every 10 minutes: remote_lists.each { |list| List.find_or_create_by_name(list.name) } remote_subscribers.each do |subscriber| person = Person.find_by_email(subscriber.user)