开发者

Rails 3 On Ubuntu

开发者 https://www.devze.com 2023-01-21 02:19 出处:网络
I\'m new to linux and newer to rails. I installed ruby 1.8.7 which is compatible with rails 3, i did the 开发者_如何学运维gem update and it installed for me rails 3.0.1 and all necessary files. Howeve

I'm new to linux and newer to rails. I installed ruby 1.8.7 which is compatible with rails 3, i did the 开发者_如何学运维gem update and it installed for me rails 3.0.1 and all necessary files. However when i make a new rails application using the 'rails new myapp' command i notice that the script folder only has one file 'script/rails' can some one help me out i have no idea hat i dad wrong and where to go from here


What are you expecting? The ../script/ folder by default only has the "rails" file.


Have a look inti this link:- It has complete steps to install Rails in ubuntu.
http://wiki.rubyonrails.org/getting-started/installation/linux.
Installing sqlite3 may be missing in the link , hence you can use the below commands:-

sudo apt-get install libsqlite3-dev ruby-dev followed by

"sudo gem install sqlite3-ruby"


script/rails is a new feature in rails 3. script/server, script/console and all script/* variants now have a: script/rails server (or simply: rails server) equivalents

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号