search for: piercee

Displaying 8 results from an estimated 8 matches for "piercee".

Did you mean: pierce
2008 Mar 04
4
Named collection forward fetching
Hello, I''m getting an "NoMethodError" traversing a named collection. Let me explain I have a named collection called best_friend in a class called user def self.best_friend find :all, :conditions => "designation = ''Best Friend''" end and if i do current_user.best_friend everything works great, I can pull up the user''s name as
2008 Dec 11
2
serialize array finder
Hello, Not sure if this is even possible/practical but I''d like to serialize an array to a string field like this and then be able to match against it. User.find(:all, :conditions => ["interests in (?)",current_user.interests) Am I better of not denormalizing? How would this be done with ordinary A/R relationships because I''m not looking for an exact match,
2008 Mar 06
0
flash[:notice] with remote_format_for
This has been asked before but I didn''t find an elegant solution. How do you display validations errors when you''re doing a remote_format_for (or in my case form_for with UJS) This is what I came up with in the partial but there was to be a more elegant solution also this displays the field names with underscores, the flash[:notice] way seems to display cleaned up business
2008 Mar 14
0
acts_as_ferret issue on windows
I installed ferret-0.11.5-x86-mswin32 successfully but I''m having no luck with either the acts_as_ferret gem or the plugin. The plugin installs clean but when I try to start the server I get the following: D:\test>ruby script\ferret_server --debug start fork() function is unimplemented on this machine D:/test/vendor/plugins/acts_as_ferret/lib/unix_daemon.rb:41:in `fork''
2008 Mar 26
0
memcached current_user
Has anyone tried this approach? Does it work? http://www.frederico-araujo.com/2007/12/13/make-your-rails-app-faster-with-memcached-part-1 Thanks. GP -- 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
2008 Oct 24
0
equality
is there a better way to test for equality than this user1.interests.collect(&id).sort == user2.interests.collect(&id).sort TIA GP -- 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
2008 Nov 15
0
killall kills god
I was having a problem with cap deploys where you get: Couldn''t find any pid file in ... matching ''dispatch.[0-9]*.pid'' based on the suggestion of another post I implemented the following in deploy.rb which does successful terminate all the Ruby process but this includes God. desc "restart override" task :restart, :roles => :app do run "killall -9
2008 Nov 16
0
ApplicationController not getting called
This seems to have happened when I upgraded from Rails 2.1.1 to 2.1.2 (although I''m not 100% sure but in applicationcontroller doesn''t seem to be called when I try to access my default controller (I mean the one that''s mapped in routes.rb like this map.root :controller => "main") What this means is that all of a sudden I have to duplicate these types of