[Rails] Re: installing a fork of a gem from github?

2010-09-05 Thread nico itkin
Did you find a solution ? , i've the same problem -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from th

[Rails] Devise & manual password change

2010-08-17 Thread nico itkin
Hello, i'm trying to use devise gem 1.1.1 on a new rails 3 app, I would like to change the password of my users from the console, user.password= works well in dev, but in production, despite the encrypted password has changed, i can't log in the application. (user.reset_password!(new_pass,new_pa

[Rails] how (and where) is implemented validation errors in forms

2009-08-10 Thread nico itkin
Hello everybody ! I'm building up an application which export ads to partners; So I've a hbtm association between the 2 models ad and partner; on the view side, the ad form contains several checkboxes (one per partner). Well the validation of an ad depends on which partner is linked to it. So

[Rails] rails, gmail client and mass-emailing failure

2009-07-30 Thread nico itkin
Hello, I build from scratch an email componenent to my webapp using actionmailer. All my single email went to destination, but when I try to send mass-emailing from the console, it sends few then crash as follow : Any idea ? Thanks in advance !! "221 2.0.0 closing connection 28sm928123eye.4\r\n

[Rails] WHY parent.collection.eql?(parent.collection) => false ????

2009-06-16 Thread nico Itkin
HEllo In other word how to make the ruby eql? method work on arrays composed of AR instance objects ?? Itkin -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails

[Rails] Re: test succeed only when run separately

2009-06-15 Thread nico Itkin
Frederick Cheung wrote: > On Jun 15, 9:05�am, nico Itkin > wrote: >> Frederick Cheung wrote: > >> Thanks Fred for your help, >> >> I guess you're right, do you know a nice way to force constant_cache to >> be run before each test ? >> >>

[Rails] Re: test succeed only when run separately

2009-06-15 Thread nico Itkin
Frederick Cheung wrote: > On Jun 15, 8:23�am, nico Itkin > wrote: >> >> > So what exactly happens �when you run rake ? >> >> > Fred >> >> When I run ruby unit/status_test.rb �: everything is fine, constants are >> all present >>

[Rails] Re: test succeed only when run separately

2009-06-15 Thread nico Itkin
Frederick Cheung wrote: > On Jun 14, 11:23�pm, nico Itkin > wrote: >> Frederick Cheung wrote: > >> >> ... all the instance of type StatusAction become constants called >> StatusAction::THE_RECORD_NAME_FIELD >> >> well the strangest is that is contan

[Rails] Re: test succeed only when run separately

2009-06-14 Thread nico Itkin
Frederick Cheung wrote: > On Jun 14, 9:53�pm, nico Itkin > wrote: >> But run whith rake everything fails : >> >> rake test:units >> >> => BOUM >> > How does it fail ? What is in constant_cache.rb ? > > Fred The constant settings

[Rails] test succeed only when run separately

2009-06-14 Thread nico Itkin
Hello, i've an initializer which set as constants all the instances retrieved from the DB, for specific AR models. Thoose constant are used a bit everywhere in the application. In my unit test, I run the initializer top preload my "dynamic constants" in the setup method of the test class. The s

[Rails] how to give back the hand to AR error handling ?

2008-11-18 Thread nico Itkin
In controller I use to raise some specific error as follows : include CustomErrors rescue_from NoGuestFound,NoHostFound,NoInvitation,WrongPass do |e| flash[:message] = e.message redirect_to :action => :index end def lambda ... @guest.is_invited_by?(@host) or raise CustomError1.new 'cont

[Rails] Re: STI updating the :type attribute of an STI instance

2008-11-18 Thread nico Itkin
Frederick Cheung wrote: > On Nov 18, 5:25�pm, nico Itkin <[EMAIL PROTECTED]> > wrote: >> Frederick Cheung wrote: >> >> I had found update_attribute_with_validation_skipping which updates the >> protected attribute , but becomes is really what i need !! thanks a

[Rails] Re: STI updating the :type attribute of an STI instance

2008-11-18 Thread nico Itkin
Frederick Cheung wrote: > On Nov 18, 4:35�pm, nico Itkin <[EMAIL PROTECTED]> > wrote: >> => # >> g.update_attributes!(:type=>'Host') >> => true>> g >> >> => # >> >> #It seems that this "type" attrib

[Rails] STI updating the :type attribute of an STI instance

2008-11-18 Thread nico Itkin
Hi ! i've different users subclasses organised thanks to STI under a user mother class, problem is that i can't find a way to exchange a user form a certain type to an other , any light ??? class User < ActiveRecord::Base end class Guest < User has_and_belongs_to_many :hosts, :join_table