Script/server

I am running into an odd problem and would love some assistance. I
had Ruby/Rails up and running perfectly fine on a Win 7 machine but
recently had to perform a fresh install of everything. The previous
install as well as this one were completed with RubyInstaller 1.9.2.
In the old install I was able to create apps with no problems on the
same machine. The new install went fine. Mongrel & SQLite 3 went in
with no problems. Now when I go to create a new app, everything seems
fine, but not all the files are created. I seem to be missing nearly
all of the files from the script folder of the new app.

Now I know that some may be thinking, “just go for a Linux install to
save trouble.” Well, I thought of that too. However, the same
problem arose with a fresh install of Ubuntu and following quite a few
Ubuntu/Ruby/Rails guides.

I’m just hoping that someone has some insight on this matter and
appreciate your time.

On 6 Sep 2010, at 04:02, Daniel [email protected] wrote:

I am running into an odd problem and would love some assistance. I
had Ruby/Rails up and running perfectly fine on a Win 7 machine but
recently had to perform a fresh install of everything. The previous
install as well as this one were completed with RubyInstaller 1.9.2.
In the old install I was able to create apps with no problems on the
same machine. The new install went fine. Mongrel & SQLite 3 went in
with no problems. Now when I go to create a new app, everything seems
fine, but not all the files are created. I seem to be missing nearly
all of the files from the script folder of the new app.

Now I know that some may be thinking, “just go for a Linux install to
save trouble.” Well, I thought of that too. However, the same
problem arose with a fresh install of Ubuntu and following quite a few
Ubuntu/Ruby/Rails guides.

I’m just hoping that someone has some insight on this matter and
appreciate your time.

Are you using Rails 3? In Rails 3, all the old individual script files
in script/ (i.e. generate, server, console, etc.) have been combined
into one file, ‘rails’. And in practice, you just use the rails bin
installed by the gem rather than the stub in scripts/rails

Instead of running, for example:

script/console

you now run:

rails console

Chris

Chris, I am running Rails 3 and will give that a go. I must have been
running 2.3.8 on the earlier install. I’ll let you know how it goes.
Thanks.

HI,

You may try “rails server” in Rails 3 to start server. “script/server”
was
gone in last version itself…

On 6 September 2010 13:31, Daniel [email protected] wrote:

Chris, I am running Rails 3 and will give that a go. I must have been
running 2.3.8 on the earlier install. I’ll let you know how it goes.
Thanks.

On Sep 6, 3:52 am, Chris M. [email protected] wrote:

On 6 Sep 2010, at 04:02, Daniel [email protected] wrote:

I am running into an odd problem and would love some assistance. I
had Ruby/Rails up and running perfectly fine on a Win 7 machine but
recently had to perform a fresh install of everything. The previous
install as well as this one were completed with RubyInstaller 1.9.2.
In the old install I was able to create apps with no problems on the
same machine. The new install went fine. Mongrel & SQLite 3 went in
with no problems. Now when I go to create a new app, everything seems
fine, but not all the files are created. I seem to be missing nearly
all of the files from the script folder of the new app.

Now I know that some may be thinking, “just go for a Linux install to
save trouble.” Well, I thought of that too. However, the same
problem arose with a fresh install of Ubuntu and following quite a few
Ubuntu/Ruby/Rails guides.

I’m just hoping that someone has some insight on this matter and
appreciate your time.

Are you using Rails 3? In Rails 3, all the old individual script files in
script/ (i.e. generate, server, console, etc.) have been combined into one
file, ‘rails’. And in practice, you just use the rails bin installed by the
gem rather than the stub in scripts/rails

Instead of running, for example:

script/console

you now run:

rails console

Chris


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected][email protected]
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


With Regards
Palani Kannan. K
Office: +49-531-2616-226
Mobile: +4917647098166