Displaying 17 results from an estimated 17 matches for "toolmantim".
2008 May 29
7
when is a boolean not a boolean?
Weird problem.. I''m new to rails and ruby... maybe someone can explain
what I am not getting..
Env: Mac OS X 10.5.3, Rails. 2.0.2, ruby 1.8.6 (2007-09-24 patchlevel
111)
A User class created using the restful_authentication plugin
A Company class (has lots of fields not really important to the
problem below)
Users can have many companies, entered into the User.rb model as one
would
2006 Jan 06
4
"Selecting" a calculated row / Using :select in the paginate method
Hi,
I was trying to use the :select parameter to select a calculated row,
but it appears that the parameter is not picked up by the paginate method.
I want to add the following to the select statement:
timediff(now(), created_on) as age
So I tried:
@story_pages, @stories = paginate :stories, {:per_page => 10, :include
=> ''user'', :select =>
2007 May 07
7
A little love for acts_as_taggable #8279
I was working with acts_as_taggable earlier and thought I could make
it a bit friendlier.
I submitted a ticket and patch #8279. Basically, there are three
differences.
1. Fixed the deprecated :dependent => true
2. Added migration generator (it has really specific requirements on
table layout, so might as well generate it).
3. Expanded the README to explain using the migration and to include
2005 Apr 20
4
acts_as_list and single table inheritance
in a single table inheritance model, rails will automatically set the
scope for acts_as_list to the ''type'' field as well as any other scope
conditions we provide.
Is there a way to disable this? i want to use STI but I want
acts_as_list to disregard the class type when getting/setting
positions.
thanks
alan
2005 Jul 06
4
Bug in shop demo
http://script.aculo.us/demos/shop if you drag an item from the product
list straight to the droppable area to remove an item from the cart,
it''ll still add it to the cart.
-PJ
2005 Aug 02
4
Fwd: Re: disable ''tab'' key wish for incremental autocomplete of textareas
...ers ready,
Asynchronous auto-complete raises a whole new an of
worms to tackle and give the user a ''Least Surprising''
answer.
To restate my wish: a flag for Autocompleter to
prevent the TAB key from causing a user to leave the
current text field.
-San
--- Tim Lucas <t.lucas@toolmantim.com> wrote:
> On 02/08/2005, at 11:16 AM, sanzbox@yahoo.com wrote:
>
>> I''m absolutely in love with the incremental
>> autocomplete feature in the new scriptaculous.
>>
>> My one wish would be for some way of disabling the
> TAB
>> key to prevent...
2006 Jan 03
5
Announcement: Indexed Search Engine 0.1.2 Available
Hello all.
Apologies... I was a little too eager in my earlier annoucement about
the Indexed Search Engine for Rails apps. The DB migration file
contained an error that had to be worked around. I''ve fixed that,
added more (and clearer) documentation, and a sample application. You
can find most everything you want to know about Indexed Search Engine
here:
2006 May 26
7
migration with required data
I''m working on a bugtracker application in rails. I have a Bug model
and I want to add a Priority to the mix. A Bug can have one priority.
I generate a Priority model, modify my Bug model with a belongs_to
:priority and create my migration like so:
class CreatePriorities < ActiveRecord::Migration
def self.up
create_table :priorities do |t|
t.column :name, :string,
2007 Sep 13
7
Namespacing Models
Hello everyone,
Do you feel it? The little shiver down your spine when you think of
"namespacing" in rails? To some thats a common feeling, to people like
myself who enforce absolute organization have already thought about
the need for namespaces in rails.
Now I do understand this is an ongoing effort... to some degree.
Controllers and routes, from my experiences work well, that being,
2007 Mar 17
10
a WARNING about cruise task or user-specified build task for Rails
If (like me) you use ccrb to test a Rails app
and (like me) you define your own :cruise task, because, for
example, you use rspec rather than Test::Unit
and (like me) you have the RAILS_ENV ||= ''production'' line in
environment.rb (because, like me, you use crummy shared hosting)
Your build will run in production mode, possibly screwing up your
production database,
2006 Oct 02
22
Multi Byte Strings
Hey guys,
We''ve been talking about the multi-byte patch and I think it''s time to
get feedback from you guys on a possible way forward.
We can include ActiveSupport::Multibyte with rails 1.2, and update all
of the relevant helpers to use the String#chars proxy. This will mean
that none of the action view helpers will mangle multibyte strings.
Similarly, if any Strings are being
2008 Feb 29
17
Is SQL Server not supported in RoR on the Mac?
Hi -- I''ve been having problems connecting to a SQL Server database that
I thought might be related to the fact I was upgrading Rails to 2.0.
However, I also was moving the project to my shiny new macbook.
Anyway, after jumping through a few hoops (instaling DBI, etc.), I
finally get to my latest error message:
<error>
DBI::InterfaceError: Could not load driver (no such file to
2007 Mar 19
24
alias method spec?
I am completely baffled by this one - My guess is that there is no
pure ruby way to do this - but how could I set up a spec to test that
one method is an alias of another?
Thanks for any help,
Scott
2005 Feb 09
85
Introduce yourself and your project -- Round 2
On December 14th, 2004 David Heinemeier Hansson sent this to the mailing
list:
I''m seeing a lot of new names on the list. Could
we perhaps do a round of introductions? That would
also be a great first post, if you haven''t had a
chance to contribute yet. The basics should include
your name, your organization, your country and city,
and the project you''re
2006 Feb 10
0
Rails workshop downunder
If there''s any budding Sydney developers that are just starting out
with Rails and would like a head start, or if you have some friends
you''d like to "enlighten", the first Rails workshop in Australia is
being run alongside WebDU on March 1 in Sydney. It''s a half-day event
for A$365 and though it''s open to anybody (not just WebDU delegates)
2006 Aug 30
1
Shouldn't rxml files be exempt from layout by default?
RJS templates are the only template type that are exempt from layout
by default.
Don''t you think it makes sense to add rxml to the list of exempt
extensions? I''d assume most people would be surprised to see their
XML embedded in the middle of their (most probably) rhtml layout.
http://dev.rubyonrails.org/svn/rails/trunk/actionpack/lib/
action_controller/base.rb:
2006 Oct 05
0
Where to add ActiveRecord::Base#find! tests
Just looking at adding the ActiveRecord::Base#find! method that was
spoken about a while ago now, and just wondering what''s the best way
to add these tests in?
My problem is that for 75% of the tests in finder_test.rb [1] I also
want to ensure that find! or find_by_name! or find_by_sql! works
alongside the regular finds.
I can duplicate the tests:
def test_find