similar to: help on helper module inclusion/extension

Displaying 12 results from an estimated 12 matches similar to: "help on helper module inclusion/extension"

2007 Nov 21
2
where do i get the return value of a javascipt method?
how do i get the value of a javascipt confirm() function? a(:href=>R(DeleteUser, @user.id), :onclick => "javascript:confirm(''You sure about this?'')"){label} any tips? thanks! -- |^^^^^^^^^^^^\ .|| |NALDEVNGELSTA.___||''""|""\___, | ________________ l | |__|__|_|) (@!)!(@)"""""**|(@) (@)****|(@)
2007 Jan 25
1
summary of the effects after logistic regression model
Dear all, my aim is to estimate the efficacy over time of a treatment for headache prevention. Data consist of long sequences of repeated binary outcomes (1 if the subject has at least 1 episode of headache , 0 otherwise) on subjects randomized to placebo or treatment. I have fit a logistic regression model with Huber-White cluster sandwich covariance estimator. I have put in the model the
2008 May 14
3
description method and test failures
Hi all, Hoping you can help. I have a project using rspec 1.1.3 and rails 2.0.2. I''ve run into a small problem. Said project has a method in application_helper.rb named "description". Whenever a spec test fails, I see a message like so: *snip*/vendor/plugins/rspec/lib/spec/runner/reporter.rb:37:in `description'': wrong number of arguments (0 for 2)
2007 Jul 30
1
Camping Apache2 & FCGI - Internal Use
Hey Folks, I''m deploying a camping app on an internal Apache2 + FastCGI server at my office. Of course, on my Mac it works great, but I can''t get things to work with Apache and FCGI. I''ve followed the directions on why''s page documenting how to do this, but I''m getting the following error in my Apache error.log file: FastCGI: (dynamic) server
2010 Jul 16
1
re ading SPSS .sav files (PR#13509)
Sir/Madam, Installed in my computer is the Version 2.9.1(2009-06-26) of R. I have a SPSS.sav file produced by SPSS Version 17. >install.('foreign') >library(foreign) <- read.spss("f:/sme.sav",use.value.labels=FALSE) Warning message: In read.spss("f:/sme.sav", use.value.labels = FALSE) : f:/sme.sav: Unrecognized record type 7, subtype 18
2008 Jun 05
2
how to add a method without coding it directly into app?
i''m missing something here. how would I code this outside the application to be shared with other Camping apps? module Blog::Controllers module AuthenticationHelper def self.included(base) class << base define_method :authenticate do |*a| a.each do |meth| if method_defined?(meth.to_s)
2008 May 08
1
query strings built by R method can''t handle multiple values from checkbox selections
query strings built by R method can''t handle multiple values from checkbox selections R(SomeRoute, :reply_status=>%w{1 2 4}) should return query_string=" http://localhost:3301/someroute/?reply_status_id=1&reply_status_id=2&reply_status_id=4 " qsp(query_string) -> {"reply_status_id"=>["1", "2", "4"]} from
2007 May 07
3
Module Madness
I''m wanted to make a "global" module that I could include in my application for some shared code between them. I''ve been making several camping apps and wanted them all to share a helper/partial that contained the navigation. I ran into a lot of difficulty when trying to include it, the primary problem being "methodUndefined" errors. I did finally get it to
2008 May 28
3
Plug-in support for Camping Apps
# camping_plugin.rb # plug-in support for Camping Apps # require ''lib/camping_plugin'' # override R helper method to your liking :-) module Camping module PluginHelpers def R_with_module(c,*g) p,h=/\(.+?\)/,g.grep(Hash) g-=h raise "bad route" unless u = c.urls.find{|x| break x if x.scan(p).size == g.size &&
2007 Sep 01
13
2 ISP connection sharing problem
Hi all, I have a similar question like many asked before I know but Please help as i cant figure out where the problem is and how should I tackle. I have 2 ISP connections. I want to share the bandwidth from both. I have copied the script from many places and created my own after changes. Problem is that only one connection is utilized at a time. Not both working. ratio of consuming
2007 Feb 12
0
Route-map Linux for ssh traffic
Hi guys, I have a question about of route-map with linux, I have two routers linux, one for Internet Trafic and other for VPN traffic, both routers have public IP''s address. Internet with nat VPN with nat eth0 200.244.10.1 eth0 200.244.10.2 ---- ----
2008 May 23
0
R(c,*g) helper method can''t handle nested hash input params
params= {"search"=>"Search", "date_begin"=>"2007-05-01", "date_type"=>"created_on", "order"=>1, "report_type"=>"year_end", "person"=> {"reply_status_id"=>"1", "created_on"=> Tue, 01 May 2007 00:00:00 +0000..Fri, 23 May 2008