search for: peschka

Displaying 6 results from an estimated 6 matches for "peschka".

Did you mean: peschko
2006 Jul 28
4
add one month or one year to a date
Hi, I need to be able to add one month or in some cases on eyear to a Date. Does anyone know of any easy ways of doing this? thanks scott -- Posted via http://www.ruby-forum.com/.
2006 Jul 31
2
ambiguous column name in has_many :through
In my application model I have three classes: Accounts, Projects, and Items class Accounts < ActiveRecord::Base has_many :items, :through => :projects, :source => :items has_many :late_items, :class_name => ''Item'', :through => :projects, :conditions => [''due_on < ?'', Time.now], :source => :items end class Projects <
2006 Jul 27
2
Creating multiple objects from form data
I''m in the process of creating a sign up form for an online application. The form collects account info, company info, and then info for an administrative user. The method looks like this: def create @account = Account.create!(params[:account]) @company = @account.companies.create!(params[:company]) @user = @company.users.create!(params[:user]) end However, this inevitably fails
2006 Jul 31
0
acts_as_list with single table inheritance
I have a question about where to decorate my classes with acts_as_list. I am using single table inheritance and i have a base class LookupItem. There are 5 child classes: Priority, Probability, RiskRating, Status, and RiskManagementItem. Each of these 5 items needs to act as a list. Should I use acts_as_list on each child class or should it go on the parent LookupItem class? I''m
2006 Aug 03
0
Single Table Inheritance and controllers
I''m using Single Table Inheritance in my rails application, and I was wondering if it''s possible to create controllers and views for the STI classes. I''ve currently tried this with a simple Item and an ActionItem class, but Rails complains that it can''t route to the controller for ActionItem. Is there something special I need to do to set this up? Will every
2006 Aug 06
3
Platform performance comparisons
I''m in the process of developing a Rails application. Currently there is some debate as to the final deployment platform. I''m in favor of using some flavor of linux. However, there are some more "risk averse" co-workers who would prefer to deploy on Windows and, more specifically, IIS. I have heard that Ruby is much slower on Windows than Linux, but I have been