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
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
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
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
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
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 ?
>>
>>
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
>>
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
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
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
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
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
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
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
14 matches
Mail list logo