Cov txheej txheem:

Kuv yuav tsim ib qhov project hauv Ruby li cas?
Kuv yuav tsim ib qhov project hauv Ruby li cas?

Video: Kuv yuav tsim ib qhov project hauv Ruby li cas?

Video: Kuv yuav tsim ib qhov project hauv Ruby li cas?
Video: Tsis Deev Koj Thiaj Tsis Seev BY Aka 2024, Kaum ib hlis
Anonim

Txhawm rau tsim Ruby program los ntawm kos, ua cov hauv qab no:

  1. Khiav RubyMine thiab nias Tsim Tshiab Qhov project nyob rau ntawm qhov Zoo siab txais tos Screen.
  2. Hauv New Qhov project dialog, ua paub meej tias Empty Qhov project yog xaiv nyob rau sab laug pane. Tom qab ntawd, qhia cov kev teeb tsa hauv qab no:

Raws li txoj cai, kuv yuav pib qhov project Rails li cas?

Yuav ua li cas rau nruab Rails , tsim ib new Daim ntawv thov Rails , thiab txuas koj daim ntawv thov mus rau database. General layout ntawm a Daim ntawv thov Rails.

Txhawm rau ua qhov no, koj yuav tsum tau txais koj Rails daim ntawv thov server khiav.

  1. 4.1 Pib lub Web Server.
  2. 4.2 Hais "Nyob Zoo", Rails.
  3. 4.3 Kev teeb tsa Daim Ntawv Thov Home Page.

Tsis tas li ntawd, puas yog Ruby ntawm Rails tuag? Cov lus teb luv luv yog, tsis yog, Ruby on Rails tsis yog a tuag lus. Qhov tseeb yog qhov ntawd Ruby nyuam qhuav tau txais qhov hloov tshiab me me tsis ntev los no rau 2.7 nrog 1.7x nce hauv kev ua tau zoo thiab cia siab tias yuav muaj qhov hloov tshiab loj ntxiv rau Ruby 3 xyoo 2020. Ruby on Rails tsis yog tuag , nws yog evolving.

Ib yam li ntawd, nws tau nug, Kuv yuav ua li cas thiaj li khiav Ruby server?

Mus rau koj tus browser thiab qhib https://localhost:3000, koj yuav pom ib qho yooj yim Rails app khiav . Koj tuaj yeem siv lub npe "s" los pib qhov server :qab s. Cov server tuaj yeem yog khiav ntawm qhov chaw nres nkoj sib txawv siv qhov kev xaiv -p. Lub neej ntawd kev loj hlob ib puag ncig tuaj yeem hloov pauv siv -e.

Dab tsi yog Ruby on Rails zoo rau?

Ruby on Rails . Rails yog cov cuab yeej tsim kho uas muab cov neeg tsim tawm lub vev xaib, muab cov qauv rau txhua tus lej lawv sau. Cov Rails lub moj khaum pab cov neeg tsim khoom tsim cov vev xaib thiab cov ntawv thov, vim tias nws paub daws teeb meem thiab ua kom yooj yim cov haujlwm rov ua dua.

Pom zoo: