search for: saureen

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

Did you mean: laureen
2006 Jun 06
4
Checking if a directory is empty using File
...if I put a file in the directory and run the above code, it still ends up deleting the entire directory which doesn''t make sense since File.zero? should not return true. I even tried using File.size?(dirpath) but that doesn''t work either. Any help would be appreciated. Thanks, Saureen. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060606/a781bd1c/attachment.html
2006 Jul 06
1
<model>.update(...) not calling before_update callback.
Hi, I''m doing a <model_name>.update(....) but I''m noticing that my before_update callback is not being called. If I do a find and then a save!, I notice that it is called. The problem with a find and save in my case is that I''m not able to set all my attributes in one shot by saving params["user"] and since I can''t do this, my overloaded
2006 Jul 07
0
reintializing a model object to invoke model callbacks
...cial initializations defined as so: # In my model def user=(user) ... end ----- I need to somehow invoke the after_* and before_* callbacks and these apparently don''t get invoked if I do an update like so: user.update(....). It seems like I must do a user.save! to invoke them. Thanks, Saureen. -- Posted via http://www.ruby-forum.com/.
2006 May 19
1
FileColumn
I''m using Windows and Postgres 8. I installed RMagic gem thingy and FileColumn plugin ok. I followed instructions exactly as directed on FileColumn web site which is very straight forward: ---model class My_model < ActiveRecord::Base file_column :column_for_file_name end -----view -upload form--set to mulitpart <%= file_column_field "my_model",
2006 May 30
3
expected, got Fixnum problem.
Hi, I was wondering if anybody knew what ''<some type> expected, got Fixnum'' means? My code looks like the following: begin anevent = Event.new anevent.title = params["event"]["title"] anevent = session[:user_id] com = Community.find(params[:id]) com.events << anevent rescue Exception => exc ... end But I get an
2006 May 25
12
RMagick install problems, advice needed
Hi guys, im trying to install rmagick on windows but i have some problems with the post install, im using win2000, ruby 1.8.4 and rails 1.1, all working well. Then i downloaded RMagick-1.9.2-IM-6.2.4-6-win32.zip from http://rubyforge.org/projects/rmagick/ extracted and do the gem install RMagick-win32-1.9.2-mswin32.gem , the gem was installed sucesfully but when i do the postinstall.rb i get