Rails Engines - A presentation for the 22nd Athens Ruby Meetup
Balabit Meetup - Ruby on Rails
-
Upload
papp-laszlo -
Category
Technology
-
view
564 -
download
1
description
Transcript of Balabit Meetup - Ruby on Rails
Balabit Meetup - April 22, 2010 [email protected]
2
Balabit Meetup - April 22, 2010 [email protected]
Agile Web Development
Individuals and interactions over processes and tools
Working software over comprehensive documentation
Customer collaboration over contract negotiation
Responding to change over following a plan
3
Balabit Meetup - April 22, 2010 [email protected]
Installing Rails
apt-get install rails apt-get install rubygems
gem install rails
apt-get install rake
Suggested wayEasy way
Ubuntu
OSX
Built in, you just need to use!
Windows
Instant rails
4
Balabit Meetup - April 22, 2010 [email protected]
First application
$ rails meetup.balabit
appconfigdbdocliblogpublicscripttesttmpvendor
meetup.balabit/
5
Balabit Meetup - April 22, 2010 [email protected]
First application
appconfigdbdocliblogpublicscripttesttmpvendor
5
Balabit Meetup - April 22, 2010 [email protected]
Heart and soul
appconfigdbdocliblogpublicscripttesttmpvendor
Model ViewController
6
Balabit Meetup - April 22, 2010 [email protected]
Heart and soul
appconfigdbdocliblogpublicscripttesttmpvendor
Model ViewController
6
Balabit Meetup - April 22, 2010 [email protected]
Heart and soul
appconfigdbdocliblogpublicscripttesttmpvendor
Model ViewController
Unit TestsFunctional and
Integration TestsFunctional Tests
and Testers
Safety net
6
Balabit Meetup - April 22, 2010 [email protected]
Configuration
Database
Mysql, Postgresql, Sqlite, Oracle, Mssql, Sybase
Router
Find the corresponding controller
http://localhost/:controller/:action/:id
Environment specific settings
Production
Development
Testing
appconfigdbdocliblogpublicscripttesttmpvendor
7
Balabit Meetup - April 22, 2010 [email protected]
Database & migration
Sqlite3 database files
Migration files (upgrade & downgrade)
rake db:migrate (VERSION=)
appconfigdbdocliblogpublicscripttesttmpvendor
8
Balabit Meetup - April 22, 2010 [email protected]
Documentation
HTML and Rdoc based documentation
rake doc:appappconfigdbdocliblogpublicscripttesttmpvendor
9
Balabit Meetup - April 22, 2010 [email protected]
Lib & Vendor
Non-third party drivers (lib)
Third-party drivers (vendor)
script/plugin install [remote repository]
appconfigdbdocliblogpublicscripttesttmpvendor
10
Balabit Meetup - April 22, 2010 [email protected]
Log files
server.log
development.log
production.log
test.log
custom log files
appconfigdbdocliblogpublicscripttesttmpvendor
11
Balabit Meetup - April 22, 2010 [email protected]
Public files
Images
CSS files
Javascript files
Favicon
404, 500 error pages
Other public files
appconfigdbdocliblogpublicscripttesttmpvendor
12
Balabit Meetup - April 22, 2010 [email protected]
Script files
console (access in terminal to the application)
dbconsole (direct access to the database)
generate (controller, model, plugin, migration file)
destroy
plugin (installing 3rd party plugins)
runner (cronjob like tool)
server (start server application)
performance (checking performance tests)
appconfigdbdocliblogpublicscripttesttmpvendor
13
Balabit Meetup - April 22, 2010 [email protected]
Temporary files
Cache files
Pid files
File based sessions
Sockets
appconfigdbdocliblogpublicscripttesttmpvendor
14
Balabit Meetup - April 22, 2010 [email protected]
More demo stuffs
http://railscasts.com/
http://peepcode.com/
16