search for: simple_cach

Displaying 2 results from an estimated 2 matches for "simple_cach".

Did you mean: simple_cache
2005 Mar 24
3
Caching computation in rails?
Caching computation in rails? Simple example: factorial modulus a large number input: integer x output: factorial( x ) % 12345678901234567 I want it so that if it computes factorial of N once, it will not have to compute for N again. code: class SiteController < ApplicationController caches_action :factorial, :inv def examine @inv = @params[''inv''] @outv =
2005 Mar 26
2
ActiveRecord help needed
Hello, my name is Magnus and I am a RoR-newbie. I am trying to get the grip of ActiveRecord but I am having trouble to find good examples. I have been looking at this: http://wiki.rubyonrails.com/rails/show/AccessControlListExample Where you can find this Model code: require ''active_record'' class Permission < ActiveRecord::Base has_and_belongs_to_many :roles end