资源描述:
《在mac os x leopard上开发rails应用》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、在MacOSXLeopard上开发Rails应用 RubyonRailsisapopularandpoelinethedevelopmentanddeploymentofRailsapplications.Inaddition,theOrganizerfeatureofXCode3.0keepsyourdevelopmentdash;startingent,ization,s,addingAJAXsupport,andsupportinganiPhoneinterface; Deployment,s.ThismeanseLeopa
2、rdshipped.Rubyreleasesarefes.Makesureyoursystemisuptodatenoands:sudogemupdate--systemsudogeminstallrailssudogemupdaterakesudogemupdatesqlite3-ruby ThefirstmandupdatestheRubyGemssystemitself,andupdatesRails-specificgemsandinstallsanyneandupdatesRake,themake-likebuildtoo
3、lusedbyRails.Finally,thelastmandupdatestheRubybindingsfortheSQLite3database.Runningallthesemandsmaytakeasbytypinggemlist Youcanvieentationforalltheinstalledgemsbyrunning12345678910...下一页>>——感谢阅读这篇文章,..,gemserver Thismandstartsaentation,pointSafaritolocalhost:880
4、8/.You'llseealistofthegemsyouhaveinstalledentation. Ifyou'veusedRubybefore,youmaybeinterestedtoknosliveinLeopard.Theans/Library/Framees/1.8/Library/Ruby/Gems/1.8 The/Systemrepositoryisslive,ptybydefault.aychange. Let'ssay,forexample,thatvendorsakesureexpe
5、nsesareinlinebrokedoonthandedirectory),createaskeletonapplicationdirectorystructureandasetoffilesforourexpensesapplicationbytypingrailsexpenses Thatmandgeneratesanumberofdirectoriesandfilesinanexpensesdirectory.entakesiteasytonavigatearoundRailsprojects.Youdon'teve
6、nneedtocreateaneptyOrganizeraFinder-leftcorneroftheOrganizer. IntheOrganizerandcreated.You'llnoticeintheOrganizerthatyouhave上一页12345678910...下一页>>——感谢阅读这篇文章,..,familiarXcodeeditingfeaturessuchassyntaxcoloring,codefolding,linenumbers,methodshortcuts,andsoon.
7、 Figure1:Xcode3.0OrganizershoaTerminalmandlineusingthescript/servermand.HoinaltheOrganizer. Follountilapop-upmenuappears.ChooseEditActions...andyoushouldseetheActionEditorassho,along-leftcorneroftheOrganizer.Nametheactionstartserverbydouble-clickingonthedefaultnameShe
8、llScript. SetthedirectorytoTopLevelOrganizerItem.Thisindicatesthattheaction'smandshouldberunfromthetop-le