Note that there are some explanatory texts on larger screens.

plurals
  1. POruby on rails configuration
    text
    copied!<p>Im using the following guide for getting started with rails for ubuntu 9.10. <a href="http://guides.rails.info/getting_started.html" rel="nofollow noreferrer">http://guides.rails.info/getting_started.html</a></p> <p>I have installed both ruby and gem.</p> <hr> <p>gokul@gokul-laptop:~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux] gokul@gokul-laptop:~$ gem -v 1.3.6 gokul@gokul-laptop:~$</p> <hr> <p>For rails, </p> <hr> <p>gokul@gokul-laptop:~$sudo gem install rails</p> <hr> <p>doesnt seem to give any response. so used the synaptic package manager for installing it. And it seems to have installed correctly.</p> <hr> <p>gokul@gokul-laptop:~$ rails Usage: /usr/bin/rails /path/to/your/app [options]</p> <p>Options: -r, --ruby=path Path to the Ruby binary of your choice (otherwise scripts use env, dispatchers current path).</p> <pre><code> Default: /usr/bin/ruby1.8 -d, --database=name Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite2/sqlite3/frontbase/ibm_db). Default: sqlite3 -D, --with-dispatchers Add CGI/FastCGI/mod_ruby dispatches code to generated application skeleton Default: false --freeze Freeze Rails in vendor/rails from the gems generating the skeleton Default: false -m, --template=path Use an application template that lives at path (can be a filesystem path or URL). Default: (none) </code></pre> <p>Rails Info:</p> <pre><code>-v, --version Show the Rails version number and quit. -h, --help Show this help message and quit. </code></pre> <p>General Options:</p> <pre><code>-p, --pretend Run but do not make any changes. -f, --force Overwrite files that already exist. -s, --skip Skip files that already exist. -q, --quiet Suppress normal output. -t, --backtrace Debugging: show backtrace on errors. -c, --svn Modify files with subversion. (Note: svn must be in path) -g, --git Modify files with git. (Note: git must be in path) </code></pre> <p>Description: The 'rails' command creates a new Rails application with a default directory structure and configuration at the path you specify.</p> <p>Example: rails ~/Code/Ruby/weblog</p> <pre><code>This generates a skeletal Rails installation in ~/Code/Ruby/weblog. See the README in the newly created application to get going. </code></pre> <p>gokul@gokul-laptop:~$</p> <hr> <p>app folder is created with all the proper folders. The problem starts with the following commands...</p> <hr> <p>gokul@gokul-laptop:~$ sudo gem install bundler</p> <p>[sudo] password for gokul:</p> <p>Successfully installed bundler-0.9.24</p> <p>1 gem installed</p> <p>Installing ri documentation for bundler-0.9.24...</p> <p>Installing RDoc documentation for bundler-0.9.24...</p> <p>gokul@gokul-laptop:~$ bundle install</p> <p>Could not locate Gemfile</p> <p>gokul@gokul-laptop:~$</p> <hr> <p>coming to the database, the default sqlite3 seems to have installed correctly.</p> <hr> <p>gokul@gokul-laptop:~$ sqlite3</p> <p>SQLite version 3.6.16</p> <p>Enter ".help" for instructions</p> <p>Enter SQL statements terminated with a ";"</p> <p>sqlite></p> <hr> <p>The <strong>welcome aboard page is not being able to be found</strong> at (<a href="http://localhost:3000" rel="nofollow noreferrer">http://localhost:3000</a>) after executing the following commands...</p> <hr> <p>gokul@gokul-laptop:~/Desktop$ rails blog</p> <pre><code> create create app/controllers create app/helpers create app/models create app/views/layouts create config/environments create config/initializers create config/locales create db create doc create lib create lib/tasks create log create public/images create public/javascripts create public/stylesheets create script/performance create test/fixtures create test/functional create test/integration create test/performance create test/unit create vendor create vendor/plugins create tmp/sessions create tmp/sockets create tmp/cache create tmp/pids create Rakefile create README create app/controllers/application_controller.rb create app/helpers/application_helper.rb create config/database.yml create config/routes.rb create config/locales/en.yml create db/seeds.rb create config/initializers/backtrace_silencers.rb create config/initializers/inflections.rb create config/initializers/mime_types.rb create config/initializers/new_rails_defaults.rb create config/initializers/session_store.rb create config/environment.rb create config/boot.rb create config/environments/production.rb create config/environments/development.rb create config/environments/test.rb create script/about create script/console create script/dbconsole create script/destroy create script/generate create script/runner create script/server create script/plugin create script/performance/benchmarker create script/performance/profiler create test/test_helper.rb create test/performance/browsing_test.rb create public/404.html create public/422.html create public/500.html create public/index.html create public/favicon.ico create public/robots.txt create public/images/rails.png create public/javascripts/prototype.js create public/javascripts/effects.js create public/javascripts/dragdrop.js create public/javascripts/controls.js create public/javascripts/application.js create doc/README_FOR_APP create log/server.log create log/production.log create log/development.log create log/test.log </code></pre> <p>gokul@gokul-laptop:~/Desktop$ cd blog</p> <p>gokul@gokul-laptop:~/Desktop/blog$ rake db:create</p> <p>(in /home/gokul/Desktop/blog)</p> <p>gokul@gokul-laptop:~/Desktop/blog$ rails server</p> <pre><code> create create app/controllers create app/helpers create app/models create app/views/layouts create config/environments create config/initializers create config/locales create db create doc create lib create lib/tasks create log create public/images create public/javascripts create public/stylesheets create script/performance create test/fixtures create test/functional create test/integration create test/performance create test/unit create vendor create vendor/plugins create tmp/sessions create tmp/sockets create tmp/cache create tmp/pids create Rakefile create README create app/controllers/application_controller.rb create app/helpers/application_helper.rb create config/database.yml create config/routes.rb create config/locales/en.yml create db/seeds.rb create config/initializers/backtrace_silencers.rb create config/initializers/inflections.rb create config/initializers/mime_types.rb create config/initializers/new_rails_defaults.rb create config/initializers/session_store.rb create config/environment.rb create config/boot.rb create config/environments/production.rb create config/environments/development.rb create config/environments/test.rb create script/about create script/console create script/dbconsole create script/destroy create script/generate create script/runner create script/server create script/plugin create script/performance/benchmarker create script/performance/profiler create test/test_helper.rb create test/performance/browsing_test.rb create public/404.html create public/422.html create public/500.html create public/index.html create public/favicon.ico create public/robots.txt create public/images/rails.png create public/javascripts/prototype.js create public/javascripts/effects.js create public/javascripts/dragdrop.js create public/javascripts/controls.js create public/javascripts/application.js create doc/README_FOR_APP create log/server.log create log/production.log create log/development.log create log/test.log </code></pre> <p>gokul@gokul-laptop:~/Desktop/blog$</p> <hr> <p>hope some one can help me with this...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload