search for: railsenvi

Displaying 20 results from an estimated 24 matches for "railsenvi".

Did you mean: railsenvy
2007 Oct 21
4
Making 'expire_fragment' available to a model?
I noticed a lot of repetition across different Sweeper models in my app expiring the same fragments and so have been trying to move all the expire_fragment calls into another model which the sweepers can then use but it''s not working as I''d hoped.. I''ve created a CacheDestroyer model and want to be able to call something to the effect of:
2007 Feb 19
2
Acts_As_Ferret Tutorial
Hey guys, I wanted to share with you guys a detailed tutorial I just finished this weekend for using Acts_As_Ferret. http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial I started using Ferret and Acts_As_Ferret a few weeks ago, and I learned so much that I wanted to give back to the community by writing up a helpful tutorial that covers all the key topics in one
2008 Jul 17
2
We ain''t got no RSpec
Hey Guys, This last week on the Rails Envy Podcast we received an "interesting" voicemail. Jason encouraged me to make a remix, and I think you guys will appreciate what resulted. If you have a few minutes and need a good laugh, see here for the voicemail and the remix: http://www.railsenvy.com/2008/7/17/we-aint-got-no-rspec -Gregg -- Posted via http://www.ruby-forum.com/.
2007 Sep 12
1
Highlighting isue in description
I have read the highlighting section at http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial#highlighting It mentions that for highlight to work I must have {:store => :yes}. However it also mentions that only "small" fields should be stored. My question is how small is small enough. I have a site where events information is maintained. I have events title and events
2007 Jul 19
1
Acts_As_Ferret only returns results when searching for "*"
Hey, I''m probably just missing something really obvious but I''ve been stuck on this problem for a while now and I''m not getting anywhere. I have installed the acts_as_ferret gem, as well as ferret according to the tutorial on RailsEnvy. My model, controller, and environment.rb files have all been modified as per that turotial. However any attempts to use the
2007 Apr 06
1
fuzzy-ness to searches
Hi. I didn''t notice if topic has already been discussed, but I was wondering if there was a way to make ferret match only part of a search term. My initial thought was some sort of filter, but I''m unsure of where to begin. An example in the comments of the acts_as_ferret tutorial at RailsEnvy (http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial) suggests: To return the
2008 Nov 13
1
Fragment caching strangely honors the options I pass to it
Hi, In my view I have the following cache: <%- cache(:controller => ''products'', :action => ''index'', :action_suffix => ''footer'') do -%> ... <%- end -%> And that''s the file generated: tmp/cache/views/www.mysite.com/products.action_suffix=footer.cache Why isn''t fragment caching picking up the :index
2007 Oct 03
3
Pagination problem with acts_as_ferret
Hi, am using this wonderful plugin acts_as_ferret and according to the tutorial at http://railsenvy.com/2007/2/19/acts-as- ? rial#basic I worked it out except the pagination feature. If I have 12 records and I give limit to 10, its correctly displaying 10 records in the first page and is giving the link to the second page too. But when I go to the next page I find the same 10 records instead of
2007 Oct 01
4
Need Help with Custom Associations
I''ve read the Rails Envy AAF tutorial at http://railsenvy.com/2007/2/19/acts-as-ferret-tutorial and its given me some really good ideas. My problem lies in having AAF search the target Model''s child tables. I have no problem at all doing something like: acts_as_ferret :fields => [:title, :update_collection, :member_name] def member_name return
2008 Sep 24
3
caches_page :if not executing (but caches_action :if) does
Hi folks - Seeing a weird problem and would love some help. It''s documented in http://pastie.org/278310 to be more readable. In short, I have a caches_page "action", :if => {stuff} but the :if is never being called - the action is just caching every time. (If I put a debugger call in the :if block, it never stops.) If I replace caches_page with caches_action, the if
2008 Jan 21
13
has_many with different primary key
I''ve got quite the ActiveRecord challenge, any help would be appreciated. In my current project Companies can have many reviews. class Company < ActiveRecord::Base has_many :reviews, :as => :reviewable end However, my company table, I have two different IDs to identify my company. id - This is the typical id we use for normal stuff other_company_id - This is the id we use
2007 Mar 12
5
index.rb:384 [BUG]
Hi folks, I''ve working and playing with acts_as_ferret and follow this fantastic tutorial: http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial When I try to implement the field storage tip, it crash. So, I try to make it via script/console: 1. I have a simple model called Articles: class Article < ActiveRecord::Base acts_as_ferret :fields =>
2007 Jul 03
6
How index works!
Hi, i''ve a project in wich i have 2 different rails apps accessing the same DB. The backoffice, as usual, changes data. The frontoffice has a search capabilities with acts_as_ferret (paginated) for search. Maybe this is a newbie question but, when i delete index and restart front app all the articles are indexed, but the new one''s (via backoffice) are not searchable. Does
2007 Apr 11
0
Ferret
Hi, can someone give me a basic guide or any links to install the ferret plugin. Ive searched the forum but stil having problems. Im currently looking at this: http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial but having trouble. when i enter this: require ''acts_as_ferret'' in the environment.rb and run it, it stops my server from even working. also where do i enter
2008 May 26
1
Rake db task
Hello, just wanted to know how to create a rake db task to populate data into a database. Thanks Joel --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group,
2008 Aug 26
0
Advanced ActiveRecord - Envycast.com
Hey guys, This morning Jason Seifer and I released a new screencast website called EnvyCasts. If you enjoy the content that comes from Rails Envy, then maybe check it out. Our first screencast is "Advanced ActiveRecord", which is available for just $9 bucks at http://envycasts.com How are our screencasts different? Well, we use a green screen, which means you actually see
2009 Jun 04
0
Trying to get a job at Engine Yard
This is sort of Rails-related :) I recently applied for a job at Engine Yard after meeting the staff at RailsConf 2009. EY as you probably know is one of the premiere hosting companies for Rails. The told me to "send them something that would get me hired". After slaving over my resume and putting extra effort into my cover letter (http://tr.im/npLV) I finished yesterday a series of 1
2007 Apr 13
5
undefined method `ferret_index'' for xxx:Class
Hi I am trying to use ferret; the regular search works; but when I use the find_storage_by_contents to highlight the results, I am getting the above error. Please help thanks -- Posted via http://www.ruby-forum.com/.
2007 Aug 06
4
acts_as_ferret cross model index not updating
Does anyone know how do you get acts_as_ferret to automagically update non-standard fields? I''ve followed Rails Envy''s tutorial (http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial#nonmodel) to get aaf working across different models. And once the index is built it searches fine. In my (main) model, I''ve put: acts_as_ferret :fields => [ :name,
2007 Nov 24
12
orphan habtm rows
HI, i use models User and Groups connected with many to many association, so i have users table, groups and groups_users. lets say i create one user and one group. next i add a group to user. so now my table groups_users has one entry i.e. group_id | user_id _________|________ 1 | 1 ok, when i delete both my group and user, above entry is not deleted, thus leaving alone without