tailieunhanh - HandBooks Professional Java-C-Scrip-SQL part 22

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 22', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | . Rails by Example The best way to understand Rails is to see it in action. Go to http and download Ruby and RubyGems . If you use the Windows one-click installer you ll get RubyGems with that distribution. If you don t already have one download a relational database manager too. I used MySQL. You ll begin to get the Rails experience at install time. RubyGems lets you install Ruby applications and their dependencies. At the command line type gem install rails -v Ruby will start the installation process. It goes up to RubyForge and pulls down an index including the appropriate version of Rails and its dependencies. If you were to omit the version number Ruby would get you the latest stable version. RubyGems will then prompt you for each dependency. Answer Y or answer a once for all dependencies Attempting remote installation of rails Updating Gem source index for http Install required dependency rake Yn Y Install required dependency activesupport Yn Y Install required dependency activerecord Yn Y Install required dependency actionpack Yn Y Install required dependency actionmailer Yn Y Install required dependency actionwebservice Yn Y Successfully installed rails version You ll notice that RubyGems will then attempt to build the documentation for each of the subcomponents and Rails. And that s it. Rails is installed. You re already getting hints about the approachability of Rails. . Generating a Basic Application You can now generate a Rails project. Go to your working directory and ask Rails to generate a project called trails rails trails Ruby creates a full directory structure that will contain your application. There s no guesswork and all Rails projects will have a consistent format. I ll point out a few important directories app This directory has your application code. You ll see a directory for each component of MVC and a couple of others. config This directory will be very light. You ll put

TÀI LIỆU LIÊN QUAN
10    158    1
6    184    1
7    162    1
5    157    1
6    160    1
6    152    1
6    150    1
6    206    1
7    154    1