Displaying 20 results from an estimated 6000 matches similar to: "Run 'rails console' no problem, but not 'rails dbconsole': Couldn't find database client: psql."
2010 Dec 09
15
Rails 3 Active Record query returns "undefined method `loaded?' for #<Array:0x126a4c>"
I am getting this error on an rspec test:
undefined method `loaded?'' for #<Array:0x126a4c>
When I call:
Practice.includes("practice_members").all
Practice has_many :practice_members
PracticeMember belongs_to :practice
Practice.all returns:
[#<Practice id: 6, name: "Practice One", created_at: "2010-12-09 15:40:46",
updated_at: "2010-12-09
2011 Mar 01
11
Did rails or shoulda go insane on the inflection of 'taxes'?
I have a model ''xp_jurisdiction_taxes'' which rails (3) created correctly.
Another model ''xp_jurisdiction_states'' has many :xp_jurisdiction_taxes.
In my spec I am using a shoulda helper to test the association but get the
following error. BTW, greped the whole project just in case and the string
''taxi'' exists nowhere.
1)
2010 Aug 01
3
The {{key}} interpolation syntax in I18n messages is deprecated...
All,
Has anyone seen this - I am getting the following deprecation warning when
running my functional tests under rails 2.3.8 (just moved an app from 2.3.4
up to 2.3.8 in prep to move to Rails 3 --- if you think this problem is
solved in Rails 3 then let me know):
The {{key}} interpolation syntax in I18n messages is deprecated. Please use
%{key} instead.
I have isolated the problem to the
2008 Jan 14
2
cant install psql adapter for rails 2.0
hello list,
i set up a new rails instance with the new rails 2.0 lib.
i installed rails 2.0 over my earlier version of rails where is add
postgres support
via gem install postgres
so the error with postgres appears if i set up the database with rake
db:create:all
the following message appears:
rake aborted!
Please install the psql adapter: `gem install activerecord-psql-
adapter` (no such file
2011 Jan 23
0
Bundle installs/Cannot run dbconsole
When I run bundle install from the command line I get the following
below
installed in my project directory under sqlite3--with-sqlite3lib Folder.
Fetching source index for http://rubygems.org/
Installing rake (0.8.7)
Installing abstract (1.0.0)
Installing activesupport (3.0.3)
Installing builder (2.1.2)
Installing i18n (0.5.0)
Installing activemodel (3.0.3)
Installing erubis (2.6.6)
Installing
Couldn't find database client: mysql, mysql5, mysql.exe, mysql5.exe. Check your $PATH and try again.
2011 Dec 10
2
Couldn't find database client: mysql, mysql5, mysql.exe, mysql5.exe. Check your $PATH and try again.
Greetings,
I am trying to get MySQL to run with Rails, but when I try to get it to
run using "rails dbconsole" I get this error:
C:\IS410\Programs\sqltest3>rails dbconsole
Couldn''t find database client: mysql, mysql5, mysql.exe, mysql5.exe.
Check your
$PATH and try again.
I have MySQL installed, along with the MySQL driver. I read alot of
posts in forums saying it might
2011 Feb 04
5
Date parse - month and day reversed
I am getting the month and day reversed in parsing a date. I am wondering if
there is some intelligence in Ruby that knows that at the moment I am in
Mexico, as the parsing is working as if I was
"6/15/2008".to_date
=> ArgumentError: invalid date
"15/6/2008".to_date
=> Sun, 15 Jun 2008
What I really want is my date to be understood as month/day/year. Is there a
way to
2011 May 09
17
requests hanging
If my Rails server has been sitting idle for a while, it does not respond to
new requests.
What is the best way to troubleshoot something like that.
I am using Rails 3.0.7 in development.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2010 Nov 03
11
Why Ruby on Rails?
Hi everyone,
I would like to ask you why should I use Ruby on Rails? And I have a
silly question hope I can answer it, is it true that the creators of
ruby on Rails are gay? I''ve just read that and want to make sure.
Thanks.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2010 Nov 20
3
Global text search (and replace) on MacVim?
Been trying out Macvim and I think I have covered most of what I used in
other editors except for how to handle global searches and replaces for text
in files (i.e. not looking for file names, but search and replace text
within all files below a specific directory). Can anyone who uses MacVim
tell me what they use for such tasks? I have been poking around and see
:grep as the main method, although
2010 Jul 19
3
ActiveRecord override
Would really appreciate it if someone could tell me why this is happening:
I override ssn method of AR class so I can encrypt/decrypt to/from the db:
class Person < ActiveRecord::Base
def ssn=(value)
write_attribute(:borrower_ssn, Crypto.encrypt(self.encryption_key,
value))
write_attribute(:borrower_ssn_final_four, value[5,4])
end
def ssn
# this begin - rescue can be
2010 Dec 27
5
Is apostrophe (') something special in a regex if at end?
(Ruby 1.9.2) I have a simple validation regex which I need to pass the
following values: "Billy-Bob" and "O''Kelley" (as test cases). Originally I
was not allowing apostrophe but it became apparent I had to allow it.
The initial regex was:
/^[a-zA-Z -]*$/
Now, when I added the apostrophe like this:
/^[a-zA-Z'' -'']*$/
Then for some reason
2011 Jan 24
3
CSV::parse with named columns error on Heroku
The following code works locally (parsing a CSV with specific headers) but
when on Heroku I get the following error on the ''next if'' row:
TypeError (can''t convert String into Integer)
CSV.parse(File.open(file_path, ''r'').read.gsub(/"/, ''''), :headers =>
true) do |row|
next if row[''Customer'']
2009 Jun 23
1
[PATCH server] added ovirt-wait4service and invokation in installer to wait for psql/ldap
FIXME this patch isn't complete, still need to figure out the ldap command to
wait for that service, something along the lines of:
ldapsearch -b dc=priv,dc=ovirt,dc=org -x
(but how will we parse the base from the installer? also this cmd
fails, how to fix?)
---
installer/modules/ovirt/manifests/ovirt.pp | 8 +++++-
installer/modules/ovirt/manifests/postgres.pp | 13 ++++++---
2011 Jan 18
3
Ruby on Rails on Kylin 2.1 (麒麟操作系统2.1)
Anyone have experience with Ruby on Rails and Kylin 2.1.
I''m in process of setting up RVM and Rails 3.0.3 along with MongoDB on
Kylin 2.1 for the ultimate in a scalable high performance Ruby on
Rails environment to build a world class multi-server web application.
Best,
Khalid
http://bit.ly/fvfGU4
--
You received this message because you are subscribed to the Google Groups "Ruby
2011 Mar 02
4
migrations in rails?
Are migrations used only when you''re making changes to a database? Does
it just allow the developer to avoid using raw SQL when working with
databases?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2010 Oct 27
1
Does Ruby 1.9.2 include ftools?
If I run irb, and do this:
require ''ftools''
The response is:
LoadError: no such file to load -- ftools
I see around that 1.9.1 did not include ftools but no mention of 1.9.2.
Looking at the Ruby docs (http://www.ruby-doc.org/stdlib/), ftools is still
there.
Any ideas? Thanks,
David
--
You received this message because you are subscribed to the Google Groups "Ruby on
2011 May 17
5
has_many through question
hi there,
i thing i just have a logical problem.
i have following models.
class Area < ActiveRecord::Base
belongs_to :taskschedule
belongs_to :service
end
class Service < ActiveRecord::Base
has_many :taskschedules, :through => :areas
has_many :areas
end
class Taskschedule < ActiveRecord::Base
has_many :services, :through => :areas
has_many :areas
end
Following View
2010 Dec 22
8
Shoulda issue: no more "should have_instance_methods" ?
I''m using Shoulda.
After copying the code here....
.... http://joshuaclayton.github.com/code/2009/07/14/should-act-as-list.html....
into my test_helper file so I can test acts_as_list, I came across
issues. For one I realized I had to get rid of the _ between the
"should" and "have" in past cases, but here, I get this error when I
run my unit test:
2011 May 28
4
Rais 3, nested attributes problem with paperclip
I have two models, one model girl and one girl_photos (a file upload
asset). The only code I have in models which describes the association
is:
For the girl => belongs_to :girl and has_attached_file :photo
For the model girl_photos => has_many :girl_photos and
accepts_nested_attributes_for :girl_photos
I''ve tried to save as a nested attribute the photo, it saves the
association