Displaying 20 results from an estimated 7000 matches similar to: "ruby on cygwin and mysql - problem connecting to db"
2005 Sep 06
9
acts_as_taggable v4 - Tag Counting Anyone?
There´s already a new version of the acts_as_taggable mixin available
and look what it is capable of now:
# Gets the top 10 tags for all photos
Photo.tags_count :limit => 10 # => { ''beer'' => 68, ''wine'' => 37, ''vodka''
=> ''22'', ... }
# Gets the tags count that are greater than 30
Photo.tags_count :count =>
2006 Jul 12
2
YART (Yet Another Rails Talk)
This morning I gave a talk on Rails to the NYC CTO Club. The slides
for are online at
http://www.io.com/~jimm/writing/rails_ctoclub/s5/index.html. Hover
over the bottom right corner of the window to see the navigation
controls, including the one that brings up the notes. Printing the
slides works really well; the presentation includes CSS that formats
the whole thing for print output.
The main
2005 Sep 06
6
strange behavior of acts_as_taggable
I was testing my models with this new library and I got:
>> s.tag "warp"
ActiveRecord::StatementInvalid: ERROR: inserción o actualización en la tabla
«tags_stories» viola la llave foránea «tags_stories_story_id_fkey»
DETAIL: La llave (story_id)=(8) no está presente en la tabla «stories».
: INSERT INTO tags_stories ("tag_id", "story_id") VALUES
2005 Jan 21
2
collection_select
I''m trying to use collection_select, but it''s not working as I expect. The
list populates correctly but the current value is not selected.
@question contains a topic (via topic_id), and @topics is the list of all
topics. Here''s my attempt to create a drop-down list of the topics.
form("question") do | form |
form << content_tag("b",
2004 Dec 15
4
AR db adapter for a RDF database (ATT: DHH)
Hi people,
As I stated in a earlier message, I am using Rails on my masters degree
and soon I will have to port my application from a relational database
(MySql) to a RDF semantic database called Sesame.
At first, I thought that I could get away with most of the porting only
by writing a decent database adapter, but then, examining AR closer, I
could see that it has some strong dependencies
2005 May 01
5
Example using Builder::XmlMarkup and .rxml files?
Greetings,
I''m a newby to both "R"s in RoR. I would like to use Builder::XmlMarkup
to generate my pages. If there is a working downloadable example
somewhere, that would probably be enough. Otherwise, here''s what
I want to do:
With the following controller:
class AccountsController < ApplicationController
layout ''accounts''
model :account
2005 Sep 03
13
acts_as_taggable v2 - Tagging on Steroids
Hi folks,
Thanks to the community feedback on the 1st version, I''ve come up with a
much improved version of the acts_as_taggable mixin.
There´s some piece of the action here:
http://dema.ruby.com.br/articles/2005/09/03/tagging-on-steroids-with-rails
Cheers
Dema
--
http://dema.ruby.com.br - Rails from a .NET perspective
2006 Aug 10
4
1.1.5 Upgrade and config.load_path not working
Hey,
I am trying to upgrade to 1.1.5 and rails no longer finds my controllers the
live outside app/controllers. I was on 1.1.2 previously and here is my
setup
In environment.rb
config.load_paths += [File.join(File.expand_path(RAILS_ROOT),
"rails_shared/controllers") ]
config.load_paths += [File.join(File.expand_path(RAILS_ROOT),
"rails_shared/helpers") ]
2009 Apr 14
4
Forcing the extrapolation of loess through the origin
Hi all,
I'm fitting a line to my dataset. Later I want to predict missing values that exceed the [min,max] interval of my empirical data, therefore I choose surface="direct" for extrapolation.
l1<-loess(y1~x1,span=0.1,data.frame(x=x1,y=y1),control=loess.control(surface="direct"))
In my application it is highly important that the fitted line intercepts at the point of
2006 Jan 23
4
Proposal: Deprecate ADO support in the SQL Server adapter
The SQL Server adapter can currently operate in two modes, ADO and
ODBC, each of which uses a different interface to access the db. The
ADO interface is currently the default, while ODBC can be specified as
an option.
I propose this situation is reversed, and that use of the ADO
interface is deprecated, if not removed altogether. Here are some
reasons, I'm sure there are more:
a) ADO uses
2005 Jun 27
9
FK constraints overrated?
Hello folks,
I use to think that a relational databases without foreign keys
constraints enforced strictly by the RDBMS were no good, piece of crap,
data junk.
However, I''ve also learned the hard way that FKs constraints imposes
serious difficulties when moving data around, specially between
different DBs, or for loading test data or for upgrading DBs schemas, or
for porting DBs
2005 Aug 16
3
Rails Docs in CHM format
Hi Folks,
For the Windows Railers, I''ve made the Rails docs available as a CHM file:
http://dema.ruby.com.br/articles/2005/08/16/rails-docs-in-chm-format
Cheers,
Dema
--
http://dema.ruby.com.br - Rails from a .NET perspective
2006 Feb 23
1
PostgreSQL CASCADE not copied to test db
When the unit test harness creates a test database from the
development database, the ON DELETE CASCADE constraints I have on my
foreign keys are not copied into the test database. (I can tell by
looking at db/development_structure.sql.)
That means the fixtures can''t load/unload from the test database
properly. In other words, all my tests fail with the same error
message:
2006 Aug 15
6
try creating a table for your model
Railers:
Greetings from the low end of the learning curve. I have installed all
the prerequisites on Win32, including a lite MySQL database with a
table in it called Inventory.
Then I run this command line...
ruby script/generate ajax_scaffold Inventory
...and I get this error message:
error Before updating scaffolding from new DB schema, try creating
a table for your model
2015 Jun 02
2
GlusterFS 3.7 - slow/poor performances
hi Geoffrey,
Since you are saying it happens on all types of volumes,
lets do the following:
1) Create a dist-repl volume
2) Set the options etc you need.
3) enable gluster volume profile using "gluster volume profile <volname>
start"
4) run the work load
5) give output of "gluster volume profile <volname> info"
Repeat the steps above on new and old
2006 Aug 10
1
Web service SOAP URLs started failing with 1.1.4 or using 1.1.2 security patch
Railers,
I''m trying to figure out why invocations to my Web service URLs work
with Rails 1.1.2 but fail both with Rails 1.1.4 (and 1.1.5) and when I
apply the new 1.1.2 security patch to Rails 1.1.2.
It looks like they are failing with SOAP clients but succeeding with
XML-RPC clients.
The URL that used to work is of the form
http://localhost:3000/my_controller/ServiceName/api. When I
2007 Sep 05
4
False Positives and Autotest on New Folders
False Positives
I just discovered how easy it was to create a false positive when I, trying
my first RSpec test, did this:
ob.should eql?(''foo'')
instead of:
ob.should eql(''foo'')
or:
ob.should == ''foo''
As far as I can see, this is roughly equivalent to:
ob.should false
Neither eql?(''foo'') nor false causes the spec
2013 Nov 06
2
[LLVMdev] configparser and ConfigParser are different
LLVM builds with me on the release_33 branch, but fails on trunk. I
bisected the problem to this commit:
commit b49fb7bcd5001567d2da06f6a6e1c7ba79649e1b
Author: Daniel Dunbar <daniel at zuster.org>
Date: Wed Aug 14 23:15:39 2013 +0000
[llvm-build] Make Py3 compatible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk at 188424
91177308-0d34-0410-b5e6-96231b3b80d8
2007 Jan 28
3
Inverse fuction of ecdf
Hi Everyone,
I want to generate some random numbers according to some empirical
distribution. Therefore I am looking for the inverse of an empirical
cumulative distribution function. I haven't found any in R. Can anyone
give a pointer?
Thanks,
Geoffrey
_______________________________________________________=0A=
=0A=
=0A=
The information in this email or in any file attached
2007 Oct 05
4
have_xml_tag
Hi
Was just using have_tag on an xml response and found the problem
outlined and resolved here
http://weblog.jamisbuck.org/2007/1/4/assert_xml_select
Just wondered if there is any support in rspec?
Cheers
Shane
Shane Mingins
ELC Technologies (TM)
PO Box 247
Santa Barbara, CA 93102
Phone: +64 4 568 6684
Mobile: +64 21 435 586
Email: smingins at elctech.com
AIM: ShaneMingins
Skype: