Displaying 20 results from an estimated 4000 matches similar to: "InstantRails Lost connection to MySQL server"
2006 May 01
7
ActiveRecord and Database Views
Hiall,
If I have say 10 tables that i would like to wrap up in 1 view to
manipulate data inside these tables, do I then need 10 model.rb files
for all 10 tables plus 1 for the view, or do I just need 1 model.rb
file for the view ?
cheers
Martin
2006 May 18
6
Form actions with additional parameters
Hiall,
I want to give the action of a form an additional parameters but can''t
figure out how to do it. My code looks like this
<%= start_form_tag :action => ''create'', next_step => true %>
<%= render :partial => ''user_form'' %>
<%= render :partial => ''community_form'' %>
<%= submit_tag
2006 May 22
15
collection_select default selected value
Hiall,
Unfortunately I just can''t find out how to setup a default selected
value when using collection_select. My call is like so:
<%= collection_select(:consultant, :lastname, @consultants, :id,
:lastname, { :selected => @current_consultant.id } ) %>
which is not working, I debugged so far that I know that
@current_consultant.id contains the correct value.
Any tips?
cheers
2006 Nov 04
2
Instant Rails 1.4 final released (with RadRails support!)
This is the final release for Instant Rails 1.4. It corrects the two
known problems with the preview1 release (two help menu items
caused Instant Rails to crash). Instant Rails 1.4 contains the following
major changes:
* Upgrades Rails to version 1.1.6
(other components upgraded to current release, also)
* SCGI has been replaced by Mongrel (using Apache''s
mod_proxy for
2006 May 14
6
file and directory layout below app/models
Hiall,
Is it possible to organize my model files below app/models into
subfolders? E.g. I would like to put admin related models into their
own subfolder. This kind of structuring works for controllers and
views (scaffolding creates the right subfolder-model mappings), but
app/models always stays flat. I''d really like to be able to group my
code into logical, well packages :-) Yes, I
2006 May 15
2
Error creating controllers in InstantRails-1.3a
Hi,
I was able to successfully Install InstantRails-1.3a and run cookbook throgh
Apache and WEBrick , however when I try to create my own app. cookbook2
following tutorial ( http://instantrails.rubyforge.org/tutorial/index.html)
, it gives me below error whle creating MyTest controller
Cannot find gem for Rails =1.1.2:
Install the missing gem with ''gem install -v=1.1.2
2006 Apr 07
5
Instant Rails 1.2
According to Zed Shaw who is doing extensive work on Windows at the
moment, there is some kind of bug or adverse interaction between the
Ruby based MySQL driver and Rails 1.1, but it appears the the C base
MySQL driver works just fine.
Instant Rails 1.2 now includes the C based MySQL driver and Ruby on Rails 1.1.1.
Curt
On 4/1/06, Curt Hibbs <ml.chibbs@gmail.com> wrote:
> Instant Rails
2006 Jan 10
13
InstantRails 1.0 problems...
Hi,
I have installed InstantRails 1.0 Final on Win XP (Home SP2) and Win 2K 2000.
I was able to get the two apps (cookbook, typo) work fine with Webrick but not with SCGI server. I tried changing the SCGI settings through the InstallRails.exe console so that the Runtime Mode: would be "development" instead of "production" and SCGI port: to 5000 instead of 9998.
2006 May 18
10
What IDE can be used with InstantRails
What IDE can be used with InstantRails
I have installed ?InstantRails-1.3a-win? on my PC.
When I first started the InstantRails, an error message said something
about unable to start Apache because Port 80 being used by another
process. I went to change the Apache Port 80 and List 80 to Port 4001
and Listen 4001 respectively.
I was ratrher pleased that ?phpmyadmin? was working at
2006 Apr 08
1
Aw: Instant Rails 1.2
----- Urspr?ngliche Mitteilung -----
Von: Curt Hibbs <ml.chibbs@gmail.com>
An: rails@lists.rubyonrails.org, ruby-talk@ruby-lang.org, instantrails-users@rubyforge.org
Gesendet: Fr., 7. Apr. 2006 20:30:44 CEST
Betreff: [Rails] [ANN] Instant Rails 1.2
According to Zed Shaw who is doing extensive work on Windows at the
moment, there is some kind of bug or adverse interaction between the
Ruby
2006 May 14
4
script/console on windows
Hiall,
When I try to run script/console from a windows command line like
f:\rails_app\ruby script\console
I get the following error:
F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'': no such file to load -- initializer (LoadError)
from F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require''
2006 Aug 02
15
Rails in a Windows World
I work at an organization that is very wrapped up in Microsoft products. I
am trying to get a test application put in however I''m not sure what to do
about the infratstructure. If it were up to me we would put in MySQL and
Apache or Lighty, however its not up to me. The easiest way to get an
application into production at our company would be to use the existing MS
SQL server and IIS
2006 Nov 04
1
Instant Rails 1.4 preview1 released (with RadRails support!)
This release of Instant Rails contains the following major
changes:
* Upgrades Rails to version 1.1.6
(other components upgraded to current release, also)
* SCGI has been replaced by Mongrel (using Apache''s
mod_proxy for forward requests).
* For the development server, WEBrick has also been
replaced by Mongrel.
* Automatic RadRails configuration: if
2006 Apr 01
2
Instant Rails 1.1
Instant Rails is a one-stop Rails runtime solution containing Ruby, Rails,
Apache, and MySQL, all preconfigured and ready to run. No installer, you
simply drop it into the directory of your choice and run it. It does not
modify your system environment. This release of Instant Rails is for
Windows, but there are plans for ports to Linux, BSD, and OSX.
This release upgrades Rails to 1.1 and the
2006 Jul 12
10
Recurring mySQL Error
I am getting the following error when running my app on the server:
mysql::Error: Lost connection to MySQL server during query: <some SQL
here>
The SQL is usually a SHOW FIELDS statement, but after scouring the log
files I see that it occassionally happens with other queries as well.
I did a little research, and one topic I found suggested that I edit the
/etc/mysql/my.cnf and increase
2006 Jun 20
23
Performance (cough cough) Poor: Instant Rails
Hi,
In short, RoR is brand spanking new to me, I set up Instant Rails (if
you can call copying files "setup") and made my own simple app via
scaffold. One table, 11 cols, 100 rows. All is well, except when I view
the data, it takes 5-10 seconds to show the page, 5-10 more seconds to
get the edit page and so on. Going back to the previous page is no
faster (via previous link).
2006 May 09
3
Named link to image
Hiall,
Call me stupid if you like .,) but it seems i can''t figure out how to
get a named link using a combination of link_to and image_tag. What I
need is basically a link displaying a name along with some image to
indicate status (open,working,finished). I found no combination of
link_to and image_tag that accepts a name, this seems to be solely
used for making whole images into links
2006 Jul 12
9
Instant Rails Screencast
I created a screencast showing how you can use Instant Rails to get a
fully functional Rails environment running on Windows in under 5
minutes.
Get started with Ruby on Rails in less than 5 minutes
http://mattgriffith.net/PermaLink.aspx?guid=97aa05b7-2e38-4c7d-b184-45ab2e2715b9
Right now the video is only available in Windows Media. Eventually there
will be a flash version available too.
2006 Feb 11
9
Upgrading to Ruby 1.8.4 and strange problems!
Hi folks,
There is a strange problem here, I''ve installed the latest version of
One-Click Ruby installer [1.8.4-16 preview3], everything went fine, and
after that I''ve installed Rails 1.0.
No problem in setup process, but now, when I try run my rails application,
there are many strange things happening.
In one my application no CSS apply, looks like there is no CSS file, and
2006 May 23
3
image_tag problem
Hiall,
I want to make an image_tag from within a controller in order to be
able to present a link (with a status image) in a view. Here is my
controller method (in file webca_controller.rb, hence WebcaController)
def untouched_status_image_tag
image_tag("open", { :alt => "Offen", :title => "Offen", :size =>
"12x12", :class =>