similar to: Rspec routing_spec failing on nested singular resource

Displaying 20 results from an estimated 190 matches similar to: "Rspec routing_spec failing on nested singular resource"

2005 Oct 14
0
ImageMagick helper
Trying out the imagemagick helper by Gijs van Tulder, I''ve run into a bit of a problem. In environment.rb, I placed: require_gem ''actionpack-imagemagick'' I''ve set up my controller as such: class ProfileController < ApplicationController # ..SNIP.. class Photo < ApplicationController imagemagick_for
2007 Oct 15
5
Very simple code throwing "uninitialized constant" error
This code works on an older version of Ruby and Rails but not with Ruby 1.8.6 and Rails 1.2.5. The code is so simple that I can''t figure out where the problem is. profile_controller.rb class ProfileController < ApplicationController def show @profile = Profile.find_by_school_id(params[:id]) end end ----------------------------------------------------------- profile.rb class
2011 Mar 17
0
Testing route with proc --- possible and how?
I have this route (Rails 3) which handles redirecting shortened urls: # handles the shortened url lookup match '':hash'' => redirect { |params| Sharing.get_url_path_by_short_url(params[:hash]) }, :constraints => { :hash => /[a-zA-Z0-9]{7}/ } It works correctly at the ui. However am having trouble getting a spec working for it. Note that in the UI the user must be
2012 Apr 06
3
I can't update data in table
In my edit page: url = profile/:id/edit the content is ! <%= form_for(@user, :as => :user, :url => profile_path(current_user), :html=>{:method => :put}) do |form| %> <%= form.text_field :email, :class=>"input"%> <%= form.submit ''Update Profile''%> <% end %> ............................ In controller section ! class
2011 Apr 02
0
Can't write to samba director with windows 7
Hi all, I have a problem with using samba 3.5 with windows 7, I had succeed in joining to samba domain, but when i log in with ldap backend, i can't write the directory from samba. Here is the snippet of my smb.conf [snip] #logon drive logon drive = M: # logon home = \\%L\%U logon path = \\%L\profiles\%U # logon script = logon.bat #Windows 7 compability setting server signing = disabled
2015 Jun 14
0
Thunderbird question
On 06/14/2015 04:53 PM, jd1008 wrote: > I was looking at the output of > thunderbird --help > > and I see there is no cli arg that makes it > start with a specific profile (which can be any > one of n profiles) - unless I am not reading > the output properly :) > > I am trying to avoid having to select the profile > when starting thunderbird on different worspaces
2006 Jan 25
6
Displaying based on hostname/subdomain
Ive tried multiple ideas to get this to work, but keep hitting a dead end. Has anyone done this before? I want joe.domain.com to display www.domain.com/profile/joe Im using lighttpd. Routes dont have access to the URL string and therefore I cant code in a conditional. lighttpd rewrite seems to really screw it all up. Is there a feasible solution? Thank you, Joe Noon
2011 May 19
1
update_attributes updates data from second instance of nested form but not the first
Got a weird situation with an update put to a controller with a form with nested attributes. On the data below, I am updating data for both items (''0'' and ''1'') in rosters_attributes (in the example below I am updating the ''name'' attribute to a new value in both cases. What I am stuck on is that ''1'' gets its data updated,
2006 Apr 03
1
singular table names testing
I''ve demoed my rails app and now have to move it to a MSSQL DB. the big problem I''m running into is the table name conventions I have to use. I have to use names like tbl_Transfer & tbl_User. In my tests on the console, I am trying myvar = tbl_Transfer.find_by_sql("select top 1 * from tbl_Transfer") NameError: undefined local variable or method
2006 Apr 20
0
acts_as_list not CASCADE''ing in singular n-tier model structure
[using RAILs 1.1.2] Has anyone else seen issues where multiple tiered "acts_as_list" models do not CASCADE delete correctly? For instance, I have 4 models, the first 3 in the hierarchy have the appropriate "have_many" declarations with "exclusively_dependent => true". The last the models have the appropriate "acts_as_list" with the correct scope
2006 Mar 28
2
plural to singular blunder
I just got this error: uninitialized constant PriceCurf After much head scratching I remembered the Rails plural to singular mapping rules. My table is price_curves, my object is PriceCurve ... whereas I am guessing Rails thinks the singular ought to br PriceCurf ?! I''m sure there is a simple way around this linguistic blunder that doesn''t involve the use of pigeon English.
2011 May 27
0
System is computationally singular error for plm random effects models
Dear all, I am using the plm package for both fixed and random effects models on my country-year panel data. However, for some of the random effects models I get the following error: Error in solve.default(OM) : system is computationally singular: reciprocal condition number = 1.78233e-18 The same models work fine for fixed effects. I have also noticed that once I remove some of my variables
2010 Jul 26
0
Multichannel singular spectrum analysis (M-SSA) for R?
Does anyone know of any tools to do multichannel(multivariate) singular spectrum analysis (M-SSA) in R? Seems like this would be a useful thing to have. -Hilbert [[alternative HTML version deleted]]
2011 Dec 21
0
gmp: Error in solve.bigz(B) : System is singular
With a matrix such as C I do not have any problem: >library(gmp) > C V1 V2 V3 V4 V5 V6 V7 [1,] 1 0 0 0 1 0 0 [2,] 0 1 0 0 0 1 0 [3,] 0 0 1 0 0 0 1 [4,] 0 0 0 1 0 0 0 [5,] 0 0 0 0 1 0 0 [6,] 0 0 0 0 0 1 0 [7,] 0 0 0 0 0 0 1 > solve.bigz(C) [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] "1" "0" "0"
2009 Jan 21
1
X matrix deemed to be singular;
Hello, i'm tring to use a cox's model for a survival analysis. I have a dataset, this is a part: VOD SESSO fonte_sct donor RT_CGY STATOBMT TEMPO morto 1 0 F mid related 1200 CP 65 1 2 0 M mid 1200 2RC 5281 0 3 0 M mid unrelated 1200
2008 Oct 10
0
Multi-scale SSA (singular spectrum analysis)
Hi everybody! I am searching for an R implementation of multi-scale SSA (singular spectrum analysis), which was introduced by Yiou etal (2000) (Data-adaptive wavelets and *multi*-*scale *singular-spectrum analysis<http://linkinghub.elsevier.com/retrieve/pii/S0167278900000452>) and further described in Ghil etal (2002). For SSA alone I found an package recently published on r-forge:
2010 Aug 15
0
Singular resources namespaced by its slug (Routing)
Hi, I have the followed Rails 3 routes: Hello::Application.routes.draw do resources :blogs do resources :articles do resources :comments end end end By raking them, we can find (for instance): GET /blogs/:blog_id/articles(.:format) {:action=>"index", :controller=>"articles"} Because every routes begin with the
2006 Sep 06
1
singular factor analysis
Are there any functions available to do a factor analysis with fewer observations than variables? As long as you have more than 3 observations, my computations suggest you have enough data to estimate a factor analysis covariance matrix, even though the sample covariance matrix is singular. I tried the naive thing and got an error: > set.seed(1) > X <- array(rnorm(50), dim=c(5,
2002 Jan 11
0
factanal doesn't work with singular covariance matrix?
Dear R-users, I recently used factanal function in mva library to perform factor analysis. I notice that the function will give an error message that the log likelihood function is infinite whenever the observed covariance matrix is singular. This is because the function uses multivariate normal log-likelihood which involve log determinant of the observed covariance matrix. But I wonder if the
2008 Oct 06
0
Computationally singular [provides coefficients but not covariance matrix]
Hi, I am estimating a regression but the summary command is unable to provide me results, while the coefficients are available from the coefficients value. I suppose that it cannot estimate the covariance matrix. Is there any command that I can relax the tolerance so it can estimate the covariance matrix. The code and the error of R is: eq1<-rq(y~factor(year)+factor(state)+x1+x2+x3,