Displaying 20 results from an estimated 37 matches for "westman".
2005 Dec 30
9
SELECT MAX
How does one do a SELECT MAX query in rails? I''ve searched and searched and
tried lots of things with no luck.
I want to implement "SELECT MAX(column_name) from table_name
and have it return the maximum value from column_name. I just need to get
that one value, not the whole object...
Thanks for any ideas...
Shelby
_______________________________________________
Rails mailing
2006 Jun 15
3
how to give a form a name
Using a <%= form_tag ... %>, how do I give a form a name, so that I can
reference it with javascript? I sure can''t figure this out from the docs...
Thanks,
Shelby
PS - what I am trying to do is just have the focus in the first form field
when the form is loaded. There has to be an easy way to do this, but I
can''t figure it out...
-------------- next part --------------
2006 Aug 02
3
faster? database search or rewriting objects
I''m having an argument with my son :) I have a table with about 1500
objects called entries. I need to do something with about 100 of them
(schedule manually) I say I should just mark them with a boolean when I
have scheduled them. (manual == true) My son says I should pull them out of
the entries table and copy them to new objects (lets call them "manual"
objects, and store
2006 Jun 13
7
model validation across multiple views
I have a rather complex object with a number of attributes. For a variety
of reasons, I would like one view to create the object with only a couple of
fields completed, then a second and third view to finish all the fields. I
would like the model to validate_presence_of all these fields, since
eventually I need them all there, and I would like each page to validate its
portion of the fields that
2006 Jul 09
2
serialized DateTime objects returning as Time objects
I have a database field called dates in which I am trying to serialize an
array of DateTime objects. When I unserialize them, they are coming back
in as Time objects. I know this, because I am getting errors that say
"comparison between Time and DateTime failed.
Why is this happening? Is there a way to prevent it??
Thanks Shelby
-------------- next part --------------
An HTML attachment
2006 Jul 19
7
Sync hardware clock
Does any know of a way to sync the hardware clock without a reboot?
Graham Johnston
Senior Network Analyst
Westman Communications Group
204.725.4300 ext 382
johnstong at westmancom.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20060719/70ef23ce/attachment-0002.html>
2006 Jun 15
0
Re: rails question
...lidations out, if you haven''t already.
I don''t really know what''s up with (most of) Rails. api.rubyonrails.org, script/console, and rgrep on my gems directory are the 1-2-3 combo punch I use to figure out what''s going on and how it works.
cheers,
phil
Shelby Westman <shelby.westman@gmail.com> wrote: Phillip - a day or so ago, when I posted a question about validating only parts of a model, you suggested this:
@foo = Foo.new(params[:foo])
@foo.valid? #No, cause we haven''t finished completing it yet!
@foo.errors.invalid ? :phone # => true i...
2005 May 20
1
Centos4 web hosting Control Panel
I'm looking for a nice Open Source web hosting Control Panel.
Is anybody using VHCS with Centos4?
Any other suggestions for good control panels?
We'd really prefer a panel with a MySQL backend for user settings and
such.
Bob Pierce
Systems Analyst
Westman Communications Group
pierceb at westmancom.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20050520/55229265/attachment-0004.html>
2002 May 27
0
system hanging
...s causing my
problems?
At first I thought that this might have been a hardware issue, but after
about 8 hours on the phone with IBM we've pretty much ruled that out now.
The server is running Redhat 7.2 with the latest rsync rpm from redhat
(rsync-2.4.6-13).
Thanks,
Jon Cooper
Network Analyst
Westman Business
a division of Westman Communications Group
204.726.8839
cooperj@westmancom.com
2005 Dec 31
4
saving a collection
Reading the Agile book, I can''t find a single command to save a collection.
The save command seems to operate on only individual objects.
Lets say I have a collection that I have received from a find_all command.
I want to go through and change some attributes in various objects in the
collection. Then I want to resave the whole collection back to the
database. I don''t think
2005 Dec 27
3
myObject.send(column.name) from Agile Development book
I''m studying the Agile Development with Rails book. In the chapter that
first sets up the depot application (page 68), there is this bit of code
from a view:
<% for product in @products %>
<tr>
<% for column in Product.content_columns %>
<td><%=h product.send(column.name) %></td>
<% end %>
etc...
I am trying to absorb both Ruby and
2005 Aug 07
3
tracking online users
Let''s say I have an application and I want to create an admin program
that will show me who is currently online using the application. I
don''t know the best way to do this. Assuming I am storing my sessions
in the default PStore, I don''t suppose there is any method that lists
all the active sessions, is there?
The only way I can think of to do this is to setup a
2006 Jul 03
2
moving data from legacy database
I have rewritten a java webapp into rails. The database structure is
basically the same except that:
1) in the legacy app, several of the tables did not use ID numbers,
but relied on other fields as the primary key
2) in the legacy app, there is a join table that uses email address
and category names to do the join, not ID numbers
I would like to move or change this database to match my new
2006 Jul 16
1
form helpers with non-ActiveRecord objects
I have an ActiveRecord model (called Festival) that contains an array of
"FestDate" objects serialized into a sql text column of the Festival object.
(like the Agile book first edition describes on p. 205)
The FestDate objects themselvs are not ActiveRecord objects. (of course,
otherwise they would be in their own table...)
When working with a Festival, I would like to use various
2006 Jul 25
1
save trouble with has_many belongs_to relationship
I have a bit of code in a controller that looks like this:
@current_festival.monitor_preferences.each do |pref|
if pref.user_id == @me.id
pref.preference = params[:monitor_pref]
#pref.save
end
end
@current_festival.save_with_validation(false)
the Festival class has_many :monitor_preferences
the MonitorPreference class belongs_to :festival
In the configuration above, the
2006 Jan 04
2
collection_select with array as source
I would like to use the collection_select with a simply array as the source
of the collection.
My array looks like this:
STATES = ["Alabama", "Alaska", "Texas"]
and it is stored in my environment.rb
I can''t figure out the syntax for the collection_select in this situation...
collection_select("my_object", "state", what goes here??? )
I
2005 Dec 26
2
confused about ruby fast C bindings
I am confused about ruby fast C bindings. Does the command:
gem install mysql
install these?
Is this page:
http://www.tmtm.org/en/mysql/ruby/
the home page for these bindings? If so, it gives no instructions about
installing them with using gem.
Wondering if this is all the same???
Thanks for any help...
Shelby
_______________________________________________
Rails mailing list
2006 Jun 06
0
Linux routing
Anyone here using Quagga/Zebra and OSPFd to accomplish Equal Cost
Multipath.
I have Quagga up and working I just can't get it to insert more than one
route into the kernel for any given destination.
Graham Johnston
Senior Network Analyst
Westman Communications Group
204.725.4300 ext 382
johnstong at westmancom.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20060606/6bf2004d/attachment-0002.html>
2005 Dec 20
1
Mib browser
What are people using for a gui mib browser under centos 4.
I used to use mbrowse under 3, but it doesn't seem available.
Thanks in advance
Graham Johnston
Senior Network Analyst
Westman Communications Group
204.725.4300 ext 382
johnstong at westmancom.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20051220/290ae43c/attachment-0001.html>
2005 Nov 30
1
php 5.1.1
I notice php 5.1.1 was released a few days ago.
Are there any plans to include this new version in the centosplus repo
for CentOS 4.2?
Bob Pierce
Systems Analyst
Westman Communications Group
pierceb at westmancom.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20051130/1290f4ce/attachment-0005.html>