| Similar header styles The Wiki header styles h1, h2, h3 etc.. are all almost the same. It is very hard to distinguish the hierarchy. Making h1 for example, into an underlined div would improve the situation significantly. |
Castle MonoRail
|
by
hamilton verissimo
(30 Jun)
|
|
by
Brian Chan
(12 May)
|
|
by
Dusty Candland
(05 Apr)
|
|
by
Dusty Candland
(04 Apr)
|
|
by
Drozzy
(26 Mar)
|
|
by
Drozzy
(26 Mar)
|
|
by
Drozzy
(26 Mar)
|
Recipes and How tos
Controllers
Filters
View engines
No information available. (Would you like to contribute?)
Views
- Accessing built-in helpers from a custom helper

- [Using capturefor to keep things neat]
- Sending Email With RenderViewAndSend
Ajax
Basic
Advanced
- Official Documentation: How to Enable Windsor integration

- Using return values of Controller Actions in your javascript via ajax
- Creating Sortable Lists with script.aculo.us
CRUDs
CRUD stands for Cread, Read, Update, Delete.
The rationale behind CRUD is that a website needs to Create records, Read records, Update records or Delete records.
CRUD operations are implemented in your controller.
One way to implement CRUD in your web application specifically is to use RESTful* design. REST stands for Representational State Transfer.
REST is a design that treats your web resources using standard HTTP methods GET, POST, PUT and DELETE.
So for example URL:
http://www.company.com/products/list![]()
is broken down into a resource part: http://www.company.com/products![]()
and an action "list", which is basically a GET method.
Similarly
http://www.company.com/products/edit/1![]()
is broken down into a resource part: http://www.company.com/products![]()
and an action: edit
with an argument id of the product: 1
There are some generators that create a Controller class for you with all the basic CRUD method stubs, but you can also create them on your own.
The minimum set of methods needed to implement RESTful deisng CRUD is:
- index
GET request
URL example: /products/index.rails
lists all your models (i.e. retrieves all the products in the database) - show
GET request
URL example: /products/show.rails?id=1
display a particular model - new
GET request
URL example: /products/new
renders a form for creation of the new product (for example renders a New Product form) - create
PUT request
URL example: /products/create/?title=NewProduct&description=ThisIsDescription
creates an actual model from the forms submission rendered by new action - edit
GET request
URL example: /products/new/?id=1
renders an edit view for a particular product - update
PUT request
URL example: /products/edit/?id=1&?title=NewProduct&description=ThisIsDescription
updates a model based on the data provided in the submitted form (rendered by edit action) - destroy
DELETE request
URL example: /products/destroy/?id=1
destroys a model with a given id
REST in Ruby On Rails paper http://www.b-simple.de/download/restful_rails_en.pdf![]()
Samples
Discussions
What do your controllers look like?
Requests for documentation, samples, etc.
Blog posts
- hammett on MonoRail JS generation

Refers to an unreleased version - Simple Ajax with MonoRail Sample by Sean Chambers

Screencasts
- hammett on MonoRail and Castle Validator

Refers to an unreleased version - Ayende on MonoRail compared to WebForms

- Getting started with MonoRail - by Colin Ramsay

- Using MonoRail - by Colin Ramsay

- DataBinding and ActiveRecor - by Colin Ramsay

- Validation and much more - by Colin Ramsay

- Castle Contrib's CodeGenerator and ActiveWriter - by Colin Ramsay

