1 / 9

Rails

Rails.

trevor
Download Presentation

Rails

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Rails • Rails is a web application development framework written in the Ruby language. It is designed to make programming web applications easier by making assumptions about what every developer needs to get started. It allows you to write less code while accomplishing more than many other languages and frameworks. Experienced Rails developers also report that it makes web application development more fun.

  2. DRY – “Don’t Repeat Yourself” – suggests that writing the same code over and over again is a bad thing. • Convention Over Configuration – means that Rails makes assumptions about what you want to do and how you’re going to do it, rather than requiring you to specify every little thing through endless configuration files. • REST is the best pattern for web applications – organizing your application around resources and standard HTTP verbs is the fastest way to go.

  3. http://railsinstaller.org/

  4. http://www.aptana.com/

  5. Code • No “;” needed. You do not need to explicitly finish each line with a semi-colon • You can also use “\” for continuation of a line • Example: something = longname + anotherlongname \ +z • something.method – easy to guess, what comes after the dot is a method call • curly brackets { } – these are most of the time an indicator of a block,  • <% ruby code here %>

  6. Example: blog • rails new blog • Go into application • cd blog • rails generate controller posts (also could add an “action”)

  7. Problem in Windows 8 • First go to config/application.rb and disable the application pipline. • It looks like : config.assets.enabled = true and turn in to false config.assets.enabled= false

More Related