Displaying 5 results from an estimated 5 matches for "pbarry".
Did you mean:
barry
2009 Nov 07
0
wrong argument type Mysql (expected Struct) running rake with Ruby 1.9 / Rails 2.3.3
...t type Mysql (expected Struct)". I can run
the app fine with script/server and script/console fine. Is anyone
else having this problem or know what might cause this problem?
Here''s the stack trace:
~/Development/Projects/paulbarry(master)[ruby:1.9.1:p243] $ rake --
trace
(in /Users/pbarry/Development/Projects/paulbarry)
** Invoke default (first_time)
** Invoke spec (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
rake aborted!
w...
2006 Jun 30
2
Installing products through gem on ubuntu
...#39;'m trying to install mongrel and sqlite3 through the gem command on
ubuntu. I''m have in the same problem with both. If I try to do sudo gem
install sqlite3, it says GemNotFoundException. If I run the same command
without sudo, I don''t have permission to some directory:
pbarry@pbarry-laptop:~/downloads/rubygems-0.9.0$ sudo gem install
sqlite3-ruby
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find sqlite3-ruby (> 0) in the repository
pbarry@pbarry-laptop:~/downloads/rubygems-0.9.0$ gem install sqlite3-ruby
Select which gem to install for yo...
2006 May 06
4
Scaffold Uses Wrong Host for MySQL user
I''m following the example Depot app in Agile Web Development with Rails.
The scaffold fails because it is not using the correct host for the
user. Here is the error that the scaffold emits:
Access denied for user ''jimmy''@''%'' to database ''depot_development''
The MySql user ''jimmy'' was created with the host of
2006 Apr 28
2
Accessing fixtures from unit tests
I have set up some fixtures in test/fixtures/users.xml:
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
admin:
id: 1
username: admin
password: admin
pbarry:
id: 2
username: pbarry
I have a unit test for my user model:
require File.dirname(__FILE__) + ''/../test_helper''
class UserTest < Test::Unit::TestCase
fixtures :users
def test_find
user = User.find(@admin.id)
assert_equals(@admin.id,user.id)
end
end
Whe...
2006 Jan 22
23
calculate users age
i know it''s probably really simple, how do i work out someone''s age if i
have their d.o.b. stored as a date in my db.
cheers
--
Posted via http://www.ruby-forum.com/.