Displaying 20 results from an estimated 1000 matches similar to: "Development Mode on Dreamhost"
2006 Feb 19
8
select, first option empty value?
using the below:
<%= select(''project'', ''project_type_id'', @project_types.collect {|x|
[x.name,x.id]}, {:include_blank => true}) %>
but i''d like that first option to have something like "select project
type" with an empty value?
2006 Feb 09
30
why there is no automatic relationship discovery
When I explain RoR to someone I don''t have a convincing argument that
explains why everything is so automatic and transparent, but
relationships have to be encoded by hand in models. That shows I
don''t understand well that part of AR.
There''s the argument that says that not all databases offer metadata
about foreign keys, but the natural question then is that,
2006 Mar 31
1
FreeBSD powered Rails sites
Hello,
If your operation depends on FreeBSD you should be aware there is
currently a funding request by the FreeBSD security officer.
I''m relaying this information because I know FreeBSD is an important
platform for Rails and I hope those of you who do depend on FreeBSD will
be willing to put some money forward for this valuable work to continue.
You can read about the request
2006 Mar 21
8
How to avoid multiple submits/posts?
Hello,
How do I prevent previously submitted form data from being reinserted into
the database when the user presses the browser''s Refresh button?
On Aughey''s advice in #irc I tried using `redirect_to'' a new `:action'' but
this approach doesn''t seems to work.
Any idea what might be wrong or how to tackle this problem?
Thanks for your help.
P.S.- I
2006 Feb 19
4
Multiple HABTM to one table
I have a class Player, and a class Game.
Game has two HABTM relationships to the Player table through seperate
relationship tables.
class Game < ActiveRecord::Base
has_and_belongs_to_many :players, :uniq => true
has_and_belongs_to_many :victors, :class_name => ''Player'', :uniq => true
end
When I add Player A to players, and Player B to victors, and save the
2006 Mar 15
4
Ruby - Feed Generators
Hi All,
Can anyone help me in making feed[xml/rss] generator for a webpage based
on ruby/ruby on rails.
Tell me if any ruby code is already available, to generate feeds for a
webpage.
Thanks in Advance.
Sumanth.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 29
3
Bash
I have installed Ruby and Rails on my Intel iMac according to the
instructions provided by Hivelogic. Everything works perfectly.
I have noticed that if I close Terminal and later come back and open it,
It seems like the paths set in bash_login are lost. If I open bash_login
the paths are still there however if i do ruby -v it says I am running
1.8.2 (mac default) when I have installed 1.8.4.
2006 Mar 27
7
rjs template ? (how to check for existence of a dom element?
In my rjs template I''m using the following line.
page.visual_effect :slideUp, ''comment_error_details'', :duration => 0.5
It works fine if I have created the div with the
id="comment_error_details",
but if I haven''t created the error yet then my whole rjs template fails.
How can I check to see if an element has been created? I could then put
2006 Mar 18
24
rails is extremely hard to install
I''m on Mac OSX and I''m about to rip my hair out over how hard it is to
install rails. I''ve installed rubygems and am typing "ruby setup.rb" in
the command line and get "No such file or directory."
I''ve never had to use command lines before so this is alien to me. Can''t
they just make installation GUI-based for non-geeks like
2006 Mar 28
74
Is this an elaborate hoax/troll?
I sure hope so:
http://duckdown.blogspot.com/2006/03/additional-thoughts-on-why-ruby-isnt.html
Seems like it''s getting genuine rebuttals, though. It''s actually kind
of amusing.
2006 Mar 16
8
Question on gems on Mac OSX
Hi all,
lately I''ve been working with ROR on a MAC OSX tiger at work, however I
have one huge problem with seems to be the root of all my problems
whenever I use terminal or iTerm to start workign with ROR. Every
single time I open a new terminal window or close one and open a new
one, I have to reapply my path from .bash_login for Ruby and MySql, and
than I have to install the
2007 Feb 16
1
Using Puppet with hosting Rail apps on Amazon Ec2
Greetings,
I just found Puppet last night. Really wish that the discovery had
been made last month before tons of late night messy bash scripts
were written to help boot up an ec2 image....
With very little effort Puppet is now installed on my desktop as a
server and one of my staging servers is able to call into the
puppetmaster to run a very very simple manifest. So far I am super-
2006 Mar 27
4
widgets on rails?
Here''s my crazy question of the day.
Has anybody played around with using Rails to create Mac OS X Dashboard Widgets?
Or is that just sick and wrong?
Giles
2006 Sep 05
3
Testing vs Production manifests
So, the usual problem -- we want to be able to test our manifests before
putting them into full-scale no-holds-barred oh-shit-we-broke-teh-intarweb
production. The two possible solutions I''ve considered so far are:
1) Set a tag on objects we only want to be run on our test machines, and run
Puppet on the test machines with "please run objects tagged ''test''".
2006 Mar 15
13
usage of constants
I would like to define some constants that I can use across models and
views and I cannot figure out how to do that. Googling hasn''t turned up
anything useful and I''m looking at the PickAxe book, and I get the
impression that a constant must belong to a class.
If I just want a constant like...
CompanyPhoneNo = "(602) 999-9999"
and be able to use it in any view
2007 Jan 10
9
Definition specialization
There was a discussion a while ago about adding inheritance to
definitions. There is a need for a way to specialize parameters while
allowing passing other options. This comes up with remotefile where
it would be nice to have a default server location but not specify all
the parameters (and their defaults) in the definition.
Was there a change to the syntax? Is there a way to accomplish this?
2006 Apr 05
2
Typo on Dreamhost
I''ve had no success getting Typo running on my Dreamhost account. Does
anyone have a link to an FAQ on getting Typo up on Dreamhost?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2002 Mar 16
3
hi
Where can I find a patch for ext3 fs for kernel-2.4.2.
Currently I'm using RH7.1 I dont want to upgrade to RH7.2!!!
I just want to applay the ext3 patch for kernel-2.4.2 compile and use it.
Thanks in advance!
Sanat
2006 Mar 30
2
database.yml and Dreamhost
I am unable to connect to my databases.
Here is the error I am getting:
MysqlError (Can''t connect to local MySQL server through socket
''/var/run/mysqld/mysqld.sock'' (2)):
Here is my database.yml:
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql --
2006 Mar 05
5
DreamHost and ActionMailer
I''m getting ready to sign up with DreamHost, but my application is
missing the ActionMailer features.
First, can anyone provide some real code to send an email upon comment
submission?
Second, is it easy to setup ActionMailer on a DreamHost server?
Thanks!
--
Posted via http://www.ruby-forum.com/.