search for: railsenvy

Displaying 20 results from an estimated 24 matches for "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 place (Something I wish I would have had when I started u...
2008 Jul 17
2
We ain''t got no RSpec
...y 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....
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 find_by_contents on my model returns 0 results unless I am doing Article.find_by_contents("*"), with Article being my model. Searching for * will return all recor...
2007 Apr 06
1
fuzzy-ness to searches
...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 widest possible array you?d make everything OR?d and Fuzzy. <pre> <code> @query = params[:search].split(? ?).collect{|term| term + ?~?}.join(? OR ?) </code> </pre> However, the example appe...
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_...
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
...t; :reviewable, :with_primary_key => :other_company_id end It would then use the other_company_id to lookup and create reviews. Unfortunately, Rails has no such option. There has to be someone else out there that has run into this limitation. Thanks in advance for the help. Gregg Pollack RailsEnvy.com -- 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-talk-/JYPxA39Uh5TLH3MbocFFw@public....
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 => [''title''] end 2. In the c...
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 this: ruby script/plugin install svn://projects.jkraemer.net/acts_as_ferret/tags/...
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
...casts different? Well, we use a green screen, which means you actually see us in front of the code. I think this makes things a tad more entertaining. Sorry for the blatant self promotion, just trying to get the word out to those who might benefit from it. Gregg Pollack Rails Envy http://www.RailsEnvy.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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, se...
2009 Jun 04
0
Trying to get a job at Engine Yard
...old 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 minute videos with many of the top brass in the Rails community, including DHH, Obie, Ryan Bates, the RailsEnvy guys and others. After all these years we still have the friendliest, most giving group of people in the world of software development. Thanks so much guys! Anyway, the recruiter at Engine Yard loved it! So now I''m sharing the videos with you all. Hope you''ll enjoy them as much a...
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, :notes, :ferret_cat,...
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