Displaying 20 results from an estimated 2000 matches similar to: "Weird relationship thing"
2006 Jul 07
2
Testing views with Hpricot
assert_tag smells bad. Hpricot smells nice (apricotty!).
Testing your views with Hpricot:
http://www.lukeredpath.co.uk/index.php/2006/07/07/testing-your-rails-
views-with-hpricot/
Big thanks to _why for a great little library!
Feedback is appreciated. rSpec integration coming soon (hopefully!).
Cheers,
Luke Redpath
contact@lukeredpath.co.uk
-------------- next part --------------
An HTML
2006 Jul 07
2
gem install mysql ***extconf.rb failed***
I''ve installed rails (and it works) and now I want to be able to connect
to a mysql database.
The database.yml file tells me to install the mysql drivers by typing:
gem install mysql
This is the error I receive:
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration
2006 Aug 04
4
Tabs
I''m new to Ruby/Rails
I want to create Tabs similar to these...
http://demo.raibledesigns.com/struts-menu/tabbedMenu.jsp;jsessionid=aM2yeUTgLeTbY7WLAZ;jsessionid=aBFrrGHWQim4pwSPAZ?People
Can someone outline the best method?
Specifically,
Is creating a tabs.html in \..apps\views\layouts and using
class PhotoController < ApplicationController
layout "tabs"
....in my
2006 Jul 07
1
Add_column not working
I try to add a column using migration in the table tests with the name
namn as a string. Doesn''t work. Any idea why?
def self.up
add_column :tests, :namn, :string
end
--
Posted via http://www.ruby-forum.com/.
2006 Jul 06
6
Functional tsts
Hi all,
I have created projects module in my application using scaffold,
and it created me everything, and all the modules are working except the
functional test. This is the error
1) Failure:
test_create(ProjectsControllerTest)
[test/functional/projects_controller_test.rb
:55]:
Expected response to be a <:redirect>, but was <200>
8 tests, 25 assertions, 1 failures, 0
2006 Jul 07
4
Controllers - model vs. use case centric
I am working on a reasonably large application (which happens to be my
first with rails).
I was hoping to get some input on organisation of controllers and
actions.
I am finding having used scaffolding more at the beginning my
controllers tend to be very model centric, in that they mostly contain
all the actions for management of that particular model, which may crash
across multiple use
2004 Jul 27
2
Polycom IP-600 leasing?
We're interested in leasing roughly 15 Polycom IP-600 phones. Does
anyone have a vendor that they can recommend for this?
Scott
2004 Aug 27
5
IAXy Power in Australia?
Does anyone know a place in Australia that sells a power supply
suitable for the IAXy? I haven't had any luck tracking one down.
--
jeremy bogan [ jeremy@segpub.com.au ]
segment publishing - design.develop.host
2004 Dec 09
5
Sipura SPA-841
Froogle found me one supplier for the SPA-841, not sure I trust them
though. Does this phone even exist yet? Does anyone have any
experience with it? Does anyone know a vendor other than
Atacomm/voipsupply?
2003 Sep 13
3
Source for 50-pin amphenol cables?
I'm looking for a source for 50-pin amphenol
cables, the ones used to connect Adtran's to
punch down blocks. Preferably, one that's
mail order and takes orders over the internet.
Thanks.
2004 Jun 17
3
Cheap (US$120 or less) SIP Phones
These are the three cheap SIP phones that I've used.
Grandstream BT10x $65/street
Number only LCD
Zultys ZIP 2 $100/retail
No LCD
Uniden UIP 200 $120/retail
PoE, built-in switch
--
Eric Wieling * BTEL Consulting * 504-899-1387 x2111
"In a related story, the IRS has recently ruled that the cost of Windows
upgrades can NOT be deducted as a gambling loss."
2004 Sep 19
6
new ATA box for sale by Linksys
Fry's Electronics has a new Linksys 2 line ATA box for sale for $59.99
retail. They have a version with a router for $89.99. We picked the
non-router version up and it seems to be a rebadged Sipura SPA-2000. The
box has a Vonage service package inside as well, but it does work with other
services.
The box also has a "User Guide" meant for end-users that is very well
written [no
2005 May 31
1
Uniden UIP1868 - any sightings or users?
I've been looking out for the Uniden UIP1868 for a while now, but I
haven't seen it anwhere that I'm used to buying things from. According
to froogle, a couple of places (that I've never heard of) have a small
number in stock (small = 10 in this case). I'm doubly suspicious
because even uniden's own online store doesn't have them available yet,
not to mention
2012 Sep 18
4
Why x[1] is not getting substituted?
Suppose I want the output as "Trial and a sheet" without quotes
x=c("a", "b", "c")
print("Trial and x[1] sheet")
Getting "Trial and x[1] sheet"
Can anyone help?
Notice: The information contained in this electronic mail message is intended only for the use of the designated recipient. This message is privileged and confidential. and the
2012 Aug 08
3
How can we compare two vectors?
x=c(5, 8, 28, 29, 30)
y=c(5, 8, 28, 29, 31)
How can we compare these two vectors, whether each element is exactly matched with the elements in the other vector ?
How can we get the non matched elements from both the vectors?
Can anyone help?
________________________________
Notice: The information contained in this electronic mail message is intended only for the use of the designated recipient.
2012 Aug 13
5
How can I get the Ids with Duplicated key and corresponding Ids with original key?
In this following example Id 4 is duplicated with Id 1.
Like this I want both Ids (Duplicated and Duplicated with). Can anyone help?
df <- data.frame(
"Publication" = c(1, 2, 3, 1, 4, 5, 2, 3),
"Reference" = c("a", "b", "c", "a", "d", "e", "b", "c"),
"Id"= c(1, 2, 3, 4,
2015 Feb 11
2
Another Fedora decision
On Tue, 2015-02-10 at 21:32 -0600, Valeri Galtsev wrote:
> Indeed I should have said "allegedly pirated" not just "pirated". As I
> don't care to go into details if it is or it isn't. I also would recommend
> to finish this discussion and those who feel so get themselves some
> fundamental book and go ahead with reading it. Which I'm going to do
>
2012 Aug 01
2
Why the result is coming as NULL?
Why the result is coming as NULL. Can anyone help. I want to find the outliers for a reference
setwd("D:/AZ")
library("RODBC")
cdb_cnct <- odbcConnectExcel("Book1.xls")
cdb_frame <- sqlFetch(cdb_cnct, "Sheet1")
odbcClose(cdb_cnct)
rm(cdb_cnct)
x<- cdb_frame$Publication >=1990 & cdb_frame$Publication <=2012
invalid <- cdb_frame[!x,
2012 Sep 25
2
Recategorizing Nominal variable
Hello,
I would like to take a data set of doctors, and recategorize them into
numbers.
For example,
John Doe would be assigned as 1
Jane Doe would be assigned as 2
Does anyone know how to do this in R? It seems quite easy, yet I cannot
find the code.
Thank you,
Michael Leitson
Research Intern
MSAS Candidate
Michael.Leitson@wellstar.org
2012 Sep 17
3
I want to send the vector a into the Object A.......
a=c(1,2,3)
b=c(23, 24, 25)
x=c("a", "b")
#if (length(x[1]) == 0) {cat("x[1] is having 3 elements")}
Suppose I want to send the vector a into the Object A,
um getting only "a" as the ouput for Object A but not getting required output as the vector with the elements 1, 2, 3 with the following code
A<- x[1]
How to code it?
Can anyone help?
Notice: The