[Rails] Re: issue with the object cache

2009-03-05 Thread Shiv N Gautam
On Thu, Mar 5, 2009 at 9:28 PM, luis wrote: > > > > On Mar 5, 9:00 am, Frederick Cheung > wrote: > > On 5 Mar 2009, at 14:37, luis wrote: > > > > > > > > > This happens when trying to save the Client object, here is the stack > > > trace > > > > Looks like you still have a validation against nam

[Rails] Re: Calculate Compound interest

2009-02-20 Thread Shiv N Gautam
pow(x,y) can be represented as x**y -- Shiv N Gautam On Fri, Feb 20, 2009 at 1:47 PM, Ankit Parekh < rails-mailing-l...@andreas-s.net> wrote: > > Hi > > I want to calculate compound interest on monthly and daily basis. I am > doing this with the formula. > > Now the

[Rails] Re: Explain this migrate line?

2009-01-18 Thread Shiv N Gautam
Title : name of the column string : type of the column. it maps to varchar/varchar2 Similarly for Price http://api.rubyonrails.com/classes/ActiveRecord/Migration.html -- Shiv N Gautam On Mon, Jan 19, 2009 at 8:35 AM, typemismatch wrote: > > So I have this code in a migratio

[Rails] Re: Unique field

2009-01-18 Thread Shiv N Gautam
validates_uniqueness_of http://api.rubyonrails.com/classes/ActiveRecord/Validations/ClassMethods.html#M001896 On Sun, Jan 18, 2009 at 6:06 PM, Dave wrote: > > Anyone point me in the direction of a tutorial to explain how I can > add a checker to a form field to see whether it is already used wi

[Rails] Re: query performance boost

2009-01-16 Thread Shiv N Gautam
Assuming you're using MySQL these might help you. http://dev.mysql.com/doc/refman/5.1/en/static-format.html http://dev.mysql.com/doc/refman/5.1/en/dynamic-format.html -- Shiv N Gautam On Fri, Jan 16, 2009 at 2:17 PM, Ukrit Himakoon < rails-mailing-l...@andreas-s.net> wrote: > &g

[Rails] Re: Mind-boggling problem with update_attributes()

2008-12-27 Thread Shiv N Gautam
In case you are modifying the Roles table (and then updating the new fields) you might want to reset the column information. ModelName.reset_column_information ModelName is your case might be Role. -- Shiv On Sun, Dec 28, 2008 at 10:53 AM, Matt wrote: > > The Roles table is being changed in t

[Rails] Re: Hide & Show div (Element.toggle)

2008-12-27 Thread Shiv N Gautam
Sample: Element.toggle('div1'); Element.toggle('div2'); -- Shiv On Sat, Dec 27, 2008 at 1:29 PM, Gi Ga wrote: > > Sample? > -- > Posted via http://www.ruby-forum.com/. > > > > -- Henny Youngman - "If at first you don't succeed... so much for skydiving." --~--~-~--~~---

[Rails] Re: code for insert calender

2008-11-04 Thread Shiv N Gautam
http://code.google.com/p/calendardateselect/ -- Shiv On Tue, Nov 4, 2008 at 1:43 PM, Ishara Gunathilake < [EMAIL PROTECTED]> wrote: > i want to create a pop up calendarplease can anyone tell me how to do > it > > > > -- Spike Milligan - "My Father had a profound influence on me, he was

[Rails] Re: a simple way to generate a comma separated list of codes?

2008-09-09 Thread Shiv N Gautam
On Tue, Sep 9, 2008 at 10:11 PM, John Small < [EMAIL PROTECTED]> wrote: > > I have a model, Account, with many Courses. I want to display the course > codes for those courses as comma delimited text in an attribute of the > account. So I would have > > Account << ActiveRecord::Base > has_many :cou