![]() ![]() Now, it’s up to you create your models, controllers and everything. Rails 2.3.2 defaults it’s database format to SQLite3, so there is no need for us to tweak anything.Ĭhecking if everything is ok, using script\about: cd railsappĪnd the output should be something like this: About your application's environment Let’s call the application railsapp rails railsappĪn excerpt of the output you should get: create Successfully installed activeresource-2.3.2 Successfully installed actionmailer-2.3.2 Successfully installed activerecord-2.3.2 You should expect similar output to this: Successfully installed activesupport-2.3.2 That command is going to take a bit, since is a 2MB or so download, and will install several of the Rails dependencies (ActiveRecord, ActionPack, ActiveSupport, etc). First, let’s install the rails gem: gem install rails Now it’s time to install and build a Rails application. These special version of the gem are fat binaries, which means these can be safely installed on Ruby 1.8.6 or 1.9.1. Once installed, you should see something like this at the screen: Successfully installed sqlite3-ruby-1.2.4.1-x86-mingw32 RubyInstaller team has built and packaged special versions of these gems that we hope get published soon into RubyForge, the official place for gem distribution. So, back to the Command Prompt with Ruby, let’s install the sqlite3 bindings: gem install sqlite3-ruby -source Īdding -source help us indicate a non-standard location from where gems are going to be installed. We are going to avoid the compilation process using pre-compiled binaries that has been cooked for us. Users on other platforms usually compile themselves these components, using the mechanisms provided by the operating system distribution. Now, let’s get the Ruby bindings for SQLite3 Getting SQLite3/Ruby bindingsĪs you may know, the preferred way to distribute Ruby libraries is using Gems. Please extract those contents inside C:\Ruby19\bin Those two packages contains the DLL (sqlite3.dll) and the command line executable for SQLite (sqlite3.exe). Going to SQLite downloads, under Precompiled binaries for Windows, download sqlitedll-3_6_16.zip and sqlite-3_6_16.zip. For this, we are going to download it from Internet. Now, start a Command prompt with Ruby (under start menu, inside Ruby 1.9.1-p129).Īs you may know, Windows do not came out of the box with libraries like SQLite3. Downloaded, executed and installed to it’s default location C:\Ruby19 ![]() Please download from here one of the preview1 installers for Ruby.įor this demonstration, I’m going to use Ruby 1.9.1-p129. A few folks asked this over the past weeks, and since I released preview1 version of RubyInstaller, wouldn’t be awesome I write a guide for it? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |