Displaying 20 results from an estimated 1000 matches similar to: "rspec, Rails 2.1.0, rubygems, Mac OS X Leopard - rubygems does not recognize latest version"
2006 Jun 24
2
error log for views?
This may be a bonehead question, but when I have some error in a view
I''m testing, the server spits out a generic page:
"Application error
Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html"
This is pretty unhelpful when I''m debugging. Is there an error log
for Rails overall
2006 Jul 08
1
conditional table association?
I''m using a db to log two types of events, link events and tag
events. At first I had two tables, link_events & tag_events, but this
seemed not very DRY because the only column that was different
between them was link_id and tag_id respectively. So I made these
tables:
events:
id int
user_id int
objtype_id int (holds ''1'' or ''2'' depending
2007 Oct 21
13
[ANN/RFC] Rathole, a fixtures extension plugin
Like lots of other folks, I''ve been searching for a way to scratch my
fixture itches. Rathole is my extraction of a few techniques we''ve
successfully applied at my day job.
We''ve been using Rathole for a month or so now, but I''d really like
some feedback from a wider audience. Rathole tackles:
* Conflicting PK''s (no more id''s in fixture
2007 Oct 01
1
have_tag and line numbers
When I''ve got a view example like this:
1: response.should have_tag "fieldset#children" do
2: with_tag "child"
3: end
If it can''t find ''child'', the error seems to come back as my_spec.rb:1
instead of my_spec.rb:2.
Has anyone else experienced this? I just spent a while tracking down what I
assumed was a problem in my have_tag only to
2004 Oct 15
1
mark & owner for local connections
Hi,
Host A has two interfaces: eth0, tap0.
I want that all locally generated traffic from user 1004 goes through
tap0.
This is what I did:
iptables -A OUTPUT -t mangle -m owner --uid-owner 1004 -j MARK --set-mark 2
echo 202 bigmac.out >> /etc/iproute2/rt_tables
ip rule add fwmark 2 table bigmac.out
ip route add default via 10.0.0.1 dev tap0 table bigmac.out
ip route flush cache
2009 Feb 15
12
Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1
Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1
WARNING: If you want to live on the edge, please continue with the steps
below. Also, please be aware that all gems are not fully compatible with
Ruby 1.9.1 stable release (i.e. 1.9.1p0). Furthermore, this
installation requires you to remove ALL Ruby related gems and ports because
we are performing a clean install.
2008 Oct 10
16
rspec - undefined method `describe'' for main:Object
When i run a spec file i am getting the following error
D:\Diwakar\spec_diwa\spec\controllers>spec sandbox_controller_spec.rb
c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.5.15/lib/spec/api/sugar.rb:17:in
`method_
missing'': undefined method `describe'' for main:Object (NoMethodError)
from ./sandbox_controller_spec.rb:7
from
2010 Feb 20
23
Rails 3 possible bug in Routing
Hi, I just ran into this ActionController::RoutingError and just
wanted to check if someone can confirm this as a bug in the Rails 3
beta gem.
config/routes.rb contains:
get ''login'' => ''session#new''
post ''login'' => ''session#create'', :as => :login
GET /login works fine:
Started GET
2009 Apr 08
7
How to use Net::SSH
Hi all,
I am having following code in ruby
require ''net/ssh''
require ''net/sftp''
begin
Net::SSH.start
(''132.147.161.159'',:password=>''k'',:port=>1234,:username=>''k'') do |ssh|
ssh.sftp.connect do |sftp|
Dir.foreach(''.'') do |file|
puts file
end
2008 Aug 30
1
rails 2.1.0 doesn't find my rails app
I''m upgrading from rails 1.2.3 to 2.1.0. I got all my 1.2.3 tests to
pass in 2.1.0 with no deprecation warnings, renamed my views, replaced
all the config files with a fresh "rails --force /path/to/app" and
fired up mongrel. Problem is when I visit the homepage of my app,
rails serves that default page that says "Ruby on Rails: Welcome
Aboard". It acts like
2006 Jun 28
2
hash value won''t increment with =+ operator
I have a database of bookmarks and tags, and want to count the number
of bookmarks each tag is assigned to, for example: user "tyler" has
the tag "concerts" on 15 out of his 30 bookmarks. This code:
hash = Hash.new("0"); @user.tags.each do |t|
@user.bookmarks.each do |b|
x = 0
if b.tags.include?(t) then
hash[b.id] =+ 1
puts "hash is #{hash}
2008 Sep 22
3
syntax error in RJS
I''m new to Ruby on Rails and came across a problem I could not solve
alone.
I''ve a pretty simple RJS file that looks like the following:
3.times do
page.insert_html :bottom, ''messages'', ''test''
end
page.call ''updateMessageWindow''
However this snippet gives a syntax error:
ActionView::TemplateError (compile error
D:/Eigene
2009 Mar 13
7
rails, passenger, and images
Just switched over to passenger for development and production for my
rails app. Liking it so far.
My problem is my image_links, stylesheet_tag_links, and
javascript_tag_links are all adding "http://localhost:3000 to the
generated links. I got around the stylesheet and js links by not using
the helpers.
I can access my all of my assets directly via http://dating.local/stylesheets/all.css,
2008 Nov 07
11
Rails requires RubyGems >= 1.1.1 : problem
Hello,
On my local machine (Mac OS X 10.5.5), I get the following error when I try
to run script/server start :
"Rails requires RubyGems >= 1.1.1 (you have 1.0.1). Please `gem update
--system` and try again."
The Rails app was a former 1.2.6 upgraded to 2.1, and it worked fine.
I''ve run the rake rails:update command.
If I create a new Rails app, it starts with the command
2007 Sep 17
8
DISTINCT?
This should be easy, but I''m stumped...
class X < ActiveRecord::Base
belongs_to :y
end
class Y < ActiveRecord::Base
has_many :x
end
The y table has a column names. The x table has a column value. I
want the list of values in x for the name "Location" in y. Yes, there
are many repetitions.
I can probably hack together an SQL statement to do this without too
much
2010 May 26
25
Extremely slow start up with ruby 1.9.1 vs 1.8.7
I created a fresh new rails app, no gems, no nothing. Completely
unmodified. Doing anything that initializes rails takes 2 - 3 times
longer in ruby 1.9.1 than it does in 1.8.7. Obviously with a fresh rails
app, this is only 2 - 3 seconds extra. But with a decent sized app, this
can take up to 25 seconds for rails to initialize, vs the 12 seconds in
1.8.7.
I''ve been racking my brain on
2009 Jul 30
8
Rails 2.3.x and active_scaffold Installation
Hi,
I have upgraded to rails 2.3 and active_scaffold plugin is not
working.
when i run this command it creates a active_sacaffold folder in vendor/
plugins, but its an empty folder. I googled but found no way to
install it.
Please help!!!!!
2006 Jun 22
3
create pie chart
Hi,
I want to be able create a pie chart using rails, does anyone know of
any plugin''s taht could help me here?
Scott
--
Posted via http://www.ruby-forum.com/.
2007 Aug 10
3
[ win32utils-Bugs-12979 ] Error while trying to update my gem collection
Bugs item #12979, was opened at 2007-08-10 15:29
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=12979&group_id=85
Category: windows-pr
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Error while trying to update my gem collection
Initial Comment:
C:\ruby>gem update
Updating
2001 Jul 27
4
ext3-2.4-0.9.4-246ac5 problem...
I've updated today the version of ext3 on my laptop
(from 0.9.3 to 0.9.4) and I am unable to boot anymore
(hand copy below):
VFS: Diskquotas version dquot_6.5.0 initialized
Journalling Block Device driver loaded
Invalid operand: 0000
CPU: 0
EIP: 0010:[<c01256bf>]
...
...
...
Kernel panic: attempted to kill init.
Since this is my / fs, I am unable to boot anymore (and of course