similar to: Can rails cache a table?

Displaying 20 results from an estimated 700 matches similar to: "Can rails cache a table?"

2013 Dec 18
2
Generación de vectores aleatorios dependientes
Reciban un saludo cordial. Por favor, ¿en cuál biblioteca de R existe una función para generar vectores aleatorios correlacionados, por ejemplo (X,Y), con X~Weibull y Y~Lognormal y corr(X,Y) = 0.7? Gracias desde ya por su atención/ayuda. César Escalante C. [[alternative HTML version deleted]]
2006 Jul 26
1
Netjotter application release
I have recently completed an application for storing notes online. It works much the same way GMail does. It is meant as a replacement for using Gmail drafts since there are a few bugs with that method. The application can be found at www.netjotter.com Please let me know if you find any bugs or have any feature suggestions. David Genord II
2006 Jan 16
3
routing to controller inside module
Hey, am i to stupid to find the information about how to route to a controller in a module? Maybe module support has gone! The controller is under: app/controllers/admin/my_controller.rb The my_controller.rb file looks like this: module Admin class MyController def index render :text => ''Hello!'' end end end How does a route to all controllers under module
2006 Jan 06
3
Debug peer
Is it possible to debug selected client only? because enabling debug globaly on production machine will fill up log directory within minutes. posibly something like: debug peer = ip_address_of_client
2007 Aug 13
8
How to use expect_render?
Hi: I am a rspec beginner. I have scratched my head for the whole afternoon, trying to figure out a way of writing render expectation in controller spec. However, I failed. It kept telling me that the ''expect_render'' was an undefined method. I have installed rspec 1.0.8 and rspec_on_rails as well. Below is the controller to be tested. Controller def index pre
2007 Apr 05
3
Extending assigns in controller specs?
Hello, I am interested in enhancing assigns in controller specs to do things like the following assigns[:key1, :key2, :key3] #=> vals for keys Is there away to "break open" this construction to overload the :[] operator? Thanks. -Chris
2006 Sep 15
3
How to catch a parameter that contains a full url
Hi I need some help! I have controller that I need to pass a full url (with its own parametrs) as a parameter, e.g. I want to call my controller with: /mycontroller/catchurl?url=http://somedomain.com/afile.jsp?param1=xx&param2=yy and in action "catchurl" in mycontroller.rb I would like to have params[:url] to be "http://somedomain.com/afile.jsp?param1=xx&param2=yy"
2006 Jun 22
4
rendering partials in layouts?
Hello all, Forgive me if this is a really stupid question. How do you render partials in a layout? It''s probably way easier than i believe it to be. thanks! -- Posted via http://www.ruby-forum.com/.
2007 Aug 04
5
reusable specs - almost there
I have a lot of controllers with virtually identical functionality for most actions. I''ve been using shared behaviours to DRY things up a bit, but I still have to create separate behaviours for each context before I can use the shared behaviours what I have now is a generic file which contains all the behaviours and examples common to all the controllers, and that file gets loaded from
2007 Mar 26
2
Calling a controller action from script/console or runner
Is there a way to call or invoke a controller method from script/console or script/runner? The reason is that I''d like to pre-cache some of the actions on my controller. The pseudo code below is what I''d like to be able to do: class MyController < ApplicationController caches_action :test def test puts ''Hi there'' end end script/console:
2015 Sep 08
1
User and Group management from Linux plus roaming profiles
On 09/08/2015 03:38 AM, L.P.H. van Belle wrote: > If you did read correct. > > You choose... > > OR posix acls setup > OR windows acl setup. > Do not mix up the both! Ah, I was afraid that is what was meant there and that one could only manage acls for windows systems/users via MS tools. But as you can only have one [Profiles], and if you WILL have posix (linux, mac)
2010 May 17
6
Should an blank string be html_safe?
Just trying to implement a simple helper over the past few days had me really confused. messages = '''' messages << content_tag(:p, ''dave'') #=> &lt;p&gt;dave&lt;\p%;gt; Eventually I realised the original empty string was not html_safe message = ''''.html_safe message << content_tag(:p, ''dave'') #=>
2006 Feb 03
2
testing to see if emails are sent out on exceptions
Hi, I''m using ActionController::rescue_action_in_public() to send emails when uncaught exceptions happen. Is it possible to write tests for that? Joe
2006 Aug 08
1
Named routes and url generation?
Hi all In my application I''ve some named routes defined this way... map.label_context1 '':context1/label'', :controller => ''mycontroller'' map.label_context2 '':context1/:context2/label'', :controller => ''mycontroller'' map.label_context3 '':context1/:context2/:context3/label'', :controller =>
2014 May 21
2
Per-user Sieve script location question
Hi, after some problems, i successfuly ran my dovecot delivery and pigeonhole service in redhat EL 6. our users stored OpenLdap and users home folder like below: /home/vmail/domains/domainname.edu.tr/username/... now when i used default settings for dovecot sieve sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve script write and work globaly and stored, /home/vmail/domains/sieve i looked
2008 Jan 31
6
loading fixtures?
How do you load fixtures from specs as you would test? eg. rake db:fixtures:load RAILS_ENV=development -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080131/38c3b0ab/attachment.html
2007 Oct 16
6
respond_to API
I''ll probably do my respond_to API rewrite, as discussed here: http://rubyforge.org/pipermail/merb-devel/2007-September/000275.html sometime this week, unless someone has come up with a better API. I''ll also work in http://merb.devjavu.com/ticket/227 at the same time. Any serious objections?
2007 Dec 05
4
render :update and controller private methods
Probably asked and answered, but... Why are controller private methods inaccessible inside the block passed to render :update ? This does not work: class MyController < ApplicationController def some_action render :update do |page| page.replace_html ''an_element'', some_private_method end end private def some_private_method return
2006 Apr 19
9
Initial load time when periodically_call_remote
When I do periodically_call_remote with e.g. :frequency => 30 after initial page load I have to wait 30 seconds until this partial renders first time. Does anybody know how to make ROR to render partial on web page load, and then start periodic calls every 30 seconds? I tried to put <div id=''mydiv''><%= render(:partial, :action=>''myaction'')
2012 Sep 10
4
Object Efficiency
So I am using rufus-scheduler to call a controller which in turn calls an email receiver to check emails... In my controller, I have an instance method called checkEmail In my rufus config file, I have to call MyController.new.checkEmail. Now I set it to run every 5 minutes. So the system creates a new MyController instance every 5 minutes. That''s very inefficient right? I guess