Displaying 20 results from an estimated 10000 matches similar to: "Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1"
2009 Feb 22
16
Strange error when running rails 2.3 on ruby 1.9.1 on FreeBSD
I am trying to run rails on FreeBSD 7.1. I''ve already installed Ruby
1.9.1 (from ports), apache, passenger (edge version from git), Rails
2.3 RC 1 (using gem --source like described on the
weblog.rubyonrails.org). Everything installed smoothly and I am able
to run ruby 1.9.1 programs. The problem is when I try to run rails. It
fails with this error:
[grzesiu@cratan ~/.gem/ruby/1.9/gems]$
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 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,
2011 May 20
5
Does the puppet module tool work with ruby1.9.2?
puppet-module changelog
/opt/local/lib/ruby1.9/gems/1.9.1/gems/puppet-2.6.8/lib/puppet/util/log/destinations.rb:99:
warning: class variable access from toplevel
/opt/local/lib/ruby1.9/gems/1.9.1/gems/puppet-2.6.8/lib/puppet/application/kick.rb:
/opt/local/lib/ruby1.9/gems/1.9.1/gems/puppet-2.6.8/lib/puppet/application/kick.rb:107:
Invalid next (SyntaxError)
I''m running
puppet-module
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
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
2010 Feb 18
4
Error installing some gems (Ruby 1.9.2)
Hi I am testing Ruby 1.9.2 and Rails 3.
Has anybody encountered this error:
web katz$ gem install rspec-rails
**************************************************
Thank you for installing rspec-rails-1.3.2
If you are upgrading, do this in each of your rails apps
that you want to upgrade:
$ ruby script/generate rspec
Please be sure to read History.rdoc and Upgrade.rdoc
for useful
2006 Jun 21
7
How to install patches?
Hi,
Can someone explain how do I install patches.
Once I go to the page, I am not sure what to download and how to apply?
I am RoR newbie.
-Thanks
Hari
--
Posted via http://www.ruby-forum.com/.
2011 Aug 05
6
"bundle install" fails because of git gem
Hey everyone,
I''m having an incredibly difficult time getting bundle to work
properly on my production server.
My production server setup:
Ubuntu 10.04
Ruby 1.9.2p290
Rails 3.0.4
Passenger
rvm 1.6.32
My Gemfile (relevant parts):
gem ''linkedin'', :git => "https://github.com/renatosnrg/linkedin.git"
Whenever I try to do "bundle install" I get this
2008 Sep 16
8
rspec, Rails 2.1.0, rubygems, Mac OS X Leopard - rubygems does not recognize latest version
I''m trying to run some specs on my Mac OS/Leopard machine (10.5.5) but
rubygems won''t allow it:
$ spec spec/models/my_spec.rb
Rails requires RubyGems >= 0.9.4 (you have 0.9.3). Please `gem update
--system` and try again.
...but I already have the latest & greatest installed:
$ gem search --local rubygem
*** LOCAL GEMS ***
rubygems-update (1.2.0, 0.9.5)
Tue Sep 16
2009 Dec 30
4
Error running Mongrel on Ruby 1.9
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-html" lang="x-western">
<span class="Apple-style-span"
2009 Jul 12
3
Installing mysql with macports
Not sure if this is off topic, but there doesn''t seem to be an obvious
place to ask this question.
I am trying to use MacPorts to install mysql. I have xcode 3.0 and
x11 XQuartz 2.1.6 installed.
$PATH:
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/
local/bin:/usr/X11/bi
When I sudo port install mysql5-server
I receive:
---> Configuring mysql5
Error: Target
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
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!!!!!
2009 May 26
4
Unable to use wxruby-ruby19 in Ruby 1.9.1-p129 on Windows
Hello,
I''m using wxRuby as my favourite GUI toolkit with Ruby 1.9. But after I
updated my Ruby installation from Ruby 1.9.1-p0 to Ruby 1.9.1-p129, I
cannot do a require "wx" anymore. Every time I try I get an error that
says that Windows isn''t able to find some procedure. I have a German
Windows XP installation, so I don''t know the English equivalent of this
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 Aug 14
7
"sudo gem install rails" not able to install thin dependency
Hi folks,
I''m having trouble getting gems to install rails. It just keeps asking
me which version of thin I want to install. Until I choose skip or
cancel, in which case I''m told that something has gone wrong.
Any advice?
Thanks kindly,
Tommy
PS: Gems is 0.94.
---------------------------------------------------------------------
tommy@tommy-laptop:~/www/blog$ sudo gem
2007 May 24
3
Help with Create and Update with options_for_select in a select_tag
I have a select_tag in my view that uses options_for_select with
multiple = true. I am having trouble figuring out the Rails way to
create and update that field. Please help.
Models:
-------------
Service has_many AccessControl
AccessControl belongs_to Service
application.rb
-------------------------
$types = Array["Athens", "htpasswd", "IP", "None",
2007 Apr 01
7
database.yml: encoding: utf8 does not work
Hi all
According to the Agile 2nd Ed book I added the line encoding: utf8 to my
database.yml connections.
But now when running rake I get plenty of errors:
Character set ''utf-8'' is not a compiled character set and is not
specified in the ''/usr/local/mysql/share/mysql/charsets/Index'' file
What''s wrong here?
I checked this Index file, but it seems to
2009 Jul 31
43
Error: uninitialized constant MysqlCompat::MysqlRes
Hi,
I installed the "kwatch-mysql-ruby" gem on my Debian server but when I
try to run the "db:migrate" task I get the following error:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
uninitialized constant MysqlCompat::MysqlRes