Ruby on Rails installation windows 10 or 11 basic commands

install ruby on rails on windows 10 go to https://nodejs.org/en/ and download LTS (long time support) nodejs and install ithttps://classic.yarnpkg.com/en/docs/install#windows-stable – install yarn packageshttps://www.sqlite.org/download.html – donwload “64-bit DLL (x64) for SQLite” and “A bundle of command-line tools for managing SQLite database files, including the command-line shell program, the sqldiff.exe program, and the sqlite3_analyzer.exe program.” extract and copy files to …

USA State list for Rails

Every time we need this migration script for our projects Use following command for Model generate [siwan@localhost siwan]$ ruby script/generate model UsStates exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/us_states.rb create test/unit/us_states_test.rb create test/fixtures/us_states.yml exists db/migrate create db/migrate/20091117115011_create_us_states.rb [siwan@localhost siwan]$ Open the /db/migrate/20091117115011_create_us_states.rb file and paste following code: class CreateUsStates ‘Alabama’, :abbreviation => ‘AL’ UsStates.create …

Issue with installing the mysql gem: solved, how to install mysql gem without issue

When tried to install mysql gem I got following error [root@localhost siwan]# sudo gem install mysql Building native extensions. This could take a while… ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb checking for mysql_ssl_set()… yes checking for rb_str_set_len()… no checking for rb_thread_start_timer()… yes checking for mysql.h… no checking for …